You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
First of all thank you for your best library.
I wanted to send push notification to all users at once. But SendNotification method just gets 1 Subscription at a time. can you develope it to get list of Subscriptions ?
The text was updated successfully, but these errors were encountered:
publicasyncTaskMyOuterMethod(){// let's say there is a list of 1000+ URLsvarurls={"http://google.com","http://yahoo.com", ...};// now let's send HTTP requests to each of these URLs in parallelvarallTasks=newList<Task>();varthrottler=newSemaphoreSlim(initialCount:20);foreach(varurlinurls){// do an async wait until we can schedule againawaitthrottler.WaitAsync();// using Task.Run(...) to run the lambda in its own parallel// flow on the threadpoolallTasks.Add(Task.Run(async()=>{try{varclient=newHttpClient();varhtml=awaitclient.GetStringAsync(url);}finally{throttler.Release();}}));}// won't get here until all urls have been put into tasksawaitTask.WhenAll(allTasks);// won't get here until all tasks have completed in some way// (either success or exception)}
Hello,
First of all thank you for your best library.
I wanted to send push notification to all users at once. But SendNotification method just gets 1 Subscription at a time. can you develope it to get list of Subscriptions ?
The text was updated successfully, but these errors were encountered: