That works @maliming. Tricky code thhough :D
<cite>maliming: </cite> :) "CorsOrigins": "http://*.mycompany.com,http://localhost:4200,http://localhost:49152,http://localhost:9222"
Hehehe Thanks @maliming :D
<cite>maliming: </cite> Yes, CorsOrigins is this feature.
Yes! What value should I set in CorsOrigin?
Thanks @ryancyq
<cite>BobIngham: </cite> @ajayak, Hope this helps. This definition will run at midnight, first day of the month.
RecurringJob.AddOrUpdate<InvoiceBackgroundWorker>(job => job.Start(), "0 0 1 * *");
I'm sure it will be fired by server time and not by system time and therefore Timer.Period should be irrelevant. That's why clocks go back and forward at 02:00 and not 01:00!!!! If you have a system which has several timezones then it's another matter altogether, you will need a job to run at the offset between server time and UTC to run each hour and process data for each timezone in the system. Good luck with that if that's what you have to do. I once worked on a global betting system which had to do something similar!
Thanks @BobIngham,
But how will Timer property affect this? Does that mean the job will run with cron and with the set timer?
<cite>strix20: </cite> You should just need a log4net appender set up.
We use Graylog, so I don't have any experience with Sentry, but a cursory google search found this:
[https://github.com/MCKanpolat/SharpRaven.Log4Net.Core])
Thanks @strix20 :)
I found a simple solution as well. In my case, I only want real exceptions logged instead of UserFriendlyException. I did some exploration on AspNetBoilerplate docs and found this code to handle all types of exceptions:
public class ExceptionHandler : IEventHandler<AbpHandledExceptionData>, ITransientDependency
Now I can easily filter specific exceptions and log them to Sentry or any other service.
<cite>alper: </cite> Hi,
The docs explain how to authorize HangFire Dashboard; <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Hangfire-Integration#dashboard-authorization">https://aspnetboilerplate.com/Pages/Doc ... horization</a>
See the related posts; <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1245">https://github.com/aspnetboilerplate/as ... ssues/1245</a> <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1971">https://github.com/aspnetboilerplate/as ... ssues/1971</a>
Hi @alper,
I am using Hangfire in Web.Host solution not the MVC project. I am able to access the hangfire dashboard when I comment the hangfire authorization filter. But I cannot find a good way to access the hangfire dashboard when Authorization filter is added.
I believe this should be an inbuilt feature in AspNetZero template.
Hi @malming, I'm using the Web.Host project.
If I comment the permission section, I am able to view the hangfire dashboard. But I have no idea how to access the dashboard with the authentication enabled.
<cite>ismcagdas: </cite> @ajayak as far as I remember it depends how you send notification to user. If you directly send notification to user, no need to subscribe but if you send it to a tenant (all users of tenant), then it is send to only subscribed users.
You can read more here <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Notification-System">https://aspnetboilerplate.com/Pages/Doc ... ion-System</a>.
Thanks @ismcagdas. I removed the extra code to subscribe and everything still works great!
Hi @ismcagdas,
I found the cause of the issue. There is an internal error in EF Core 2.1 when using this code for DistinctBy
public static IQueryable<TSource> DistinctBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
{
return source.GroupBy(keySelector).Select(x => x.FirstOrDefault());
}