Beispiel #1
0
 public void CustomActionsOnAppInitialization(IApplicationBuilder app)
 {
     using (var scope = app.ApplicationServices.CreateScope())
     {
         StartupCustomServiceActions ActionsOnApplicationInitialization = new StartupCustomServiceActions();
         ActionsOnApplicationInitialization.AdministratorUserFromSeeding(scope);
     }
 }
Beispiel #2
0
 public void UserLoginEvents(OpenIdConnectOptions options, ServiceProvider serviceProvider)
 {
     options.Events = new OpenIdConnectEvents()
     {
         OnTicketReceived = context =>
         {
             StartupCustomServiceActions loginActions = new StartupCustomServiceActions();
             loginActions.PostLoginActions(context, serviceProvider);
             return(Task.CompletedTask);
         }
     };
 }