Microsoft.CrmSdk.CoreAssemblies.Async NuGet Package

Adds IAsyncOrganizationService and IAsyncDiscoveryService with async versions of interface methods to the CRM Dynamics SDK.

When you call "IOrganizationService.Execute(request)" for instance, it blocks the current thread until the reply is received from the Dynamics CRM server.

In case when multiple such operations are running in parallel the app will use too many worker threads (because they are blocked) and will start suffer from performance degradation due to thread exhaustion. To avoid this issue, it's better not to block threads and process server responses as soon as they are available.

This extension library allows you to do this using Task Parrallel Library (TPL) and asynchronous calls to Dynamics CRM server, e.g. "await IAsyncOrganizationService.ExecuteAsync(request, cancellationToken)".

To use you need to create an async version of the client (Microsoft.Xrm.Sdk.Client.Async.AsyncOrganizationServiceProxy, Microsoft.Xrm.Sdk.Client.Async.AsyncDiscoveryServiceProxy, Microsoft.Xrm.Sdk.WebServiceClient.Async.OrganizationWebProxyAsyncClient, Microsoft.Xrm.Sdk.WebServiceClient.Async.DiscoveryWebProxyAsyncClient) which does asynchronous WCF calls to the service.

GitHub project: https://github.com/tyrotoxin/Microsoft.Xrm.Sdk.Async.




Got any Microsoft.CrmSdk.CoreAssemblies.Async Question?





Info

Version: 8.0.4
Author(s): Serge Semenov
Last Update: Saturday, December 9, 2017
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/tyrotoxin/Microsoft.Xrm.Sdk.Async
NuGet Url: https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies.Async


Install
Install-Package Microsoft.CrmSdk.CoreAssemblies.Async
dotnet add package Microsoft.CrmSdk.CoreAssemblies.Async
paket add Microsoft.CrmSdk.CoreAssemblies.Async
Microsoft.CrmSdk.CoreAssemblies.Async Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

38

days-since-last-release

2302