Hi,
Entity events are automatically triggered actually. Please see Entity Changes section of documentation <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/EventBus-Domain-Events">http://aspnetboilerplate.com/Pages/Docu ... ain-Events</a>.
You can take a look at UserAccountSynchronizer class for example <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/blob/1c77cfe842f81170f4ce7e10036c1e8784331dc6/src/Abp.Zero/Authorization/Users/UserAccountSynchronizer.cs">https://github.com/aspnetboilerplate/mo ... ronizer.cs</a>
Hi,
Do you want to subscribe users to some notifications on your seed method ? If so, you should use UserNotificationInfo which is already included in the dbContext.
If you just want to create some notifications then you should use NotificationInfo.
Hi,
Maybe you can find a more detailed exception message on eventlog.xml file (in the logFiles folder). It might help us to better understand the problem.
Hi,
It's not configured by default.
You can create a common ErrorController, create an Index action for it and configure it like this,
<customErrors mode="On" defaultRedirect="~/Error">
</customErrors>
In the Index action of ErrorController, return Error.cshml or create a cutom error page of yours.
Hi,
Instead of using method of controller, you should create a new class and call it's method for your recurring job.
Thanks for sharing your solution :)
Hi,
We are planning to do this as well but we haven't think about it so much <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/447">https://github.com/aspnetboilerplate/as ... issues/447</a>.
EventBus might be used here with EntityUpdatingEventData<> generic event data class, but you need to get the origianal version in that case from database.
Hi,
We are planning to do this in version 1.0.0, please follow <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1021">https://github.com/aspnetboilerplate/as ... ssues/1021</a>
Hi,
I didn't make it work either, byt you can try to do another approach,
Define a custom data protector,
public class MachineKeyProtector : IDataProtector
{
private readonly string[] _purpose =
{
typeof(OAuthAuthorizationServerMiddleware).Namespace,
"Access_Token",
"v1"
};
public byte[] Protect(byte[] userData)
{
return System.Web.Security.MachineKey.Protect(userData, _purpose);
}
public byte[] Unprotect(byte[] protectedData)
{
return System.Web.Security.MachineKey.Unprotect(protectedData, _purpose);
}
}
Then use it like this,
TicketDataFormat = new TicketDataFormat(new MachineKeyProtector()),
Can you also share your CookieAuthenticationOptions definition ?
Thanks,
Hi,
You need to depend on WebApi module because your AppServices called via dynamic web api controllers. If you have a different situtation, can you explain that ?
And, do you still have the problem.