public static IApplicationBuilder UseSqlitePushSubscriptionStore(this IApplicationBuilder app)
        {
            using (var serviceScope = app.ApplicationServices.GetRequiredService <IServiceScopeFactory>().CreateScope())
            {
                PushSubscriptionContext context = serviceScope.ServiceProvider.GetService <PushSubscriptionContext>();
                context.Database.EnsureCreated();
            }

            return(app);
        }
예제 #2
0
 public SqlitePushSubscriptionStore(PushSubscriptionContext context)
 {
     _context = context;
 }