Esempio n. 1
0
        public static IApplicationBuilder UseCosmosDbPushSubscriptionStore(this IApplicationBuilder app)
        {
            IPushSubscriptionCosmosDbClient pushSubscriptionCosmosDbClient = app.ApplicationServices.GetRequiredService <IPushSubscriptionCosmosDbClient>();

            pushSubscriptionCosmosDbClient.EnsureCreatedAsync().GetAwaiter().GetResult();

            return(app);
        }
 public CosmosDbPushSubscriptionStore(IPushSubscriptionCosmosDbClient client)
 {
     _client = client;
 }