kind-serge / microsoft.xrm.sdk.async Goto Github PK
View Code? Open in Web Editor NEWAdds IAsyncOrganizationService and IAsyncDiscoveryService with async versions of interface methods to the CRM Dynamics SDK.
License: MIT License
Adds IAsyncOrganizationService and IAsyncDiscoveryService with async versions of interface methods to the CRM Dynamics SDK.
License: MIT License
I was glad to find this package, however, looking at the source code, I noticed Task.Run
is being used to wrap everything in async methods. e.g. : https://github.com/tyrotoxin/Microsoft.Xrm.Sdk.Async/blob/master/OrganizationService/AsyncOrganizationServiceProxy.AsyncMethods.cs
Task.Run
uses Threadpool threads, which defeats the purpose of using asynchrony for I/O bound operations and the purpose of this library which would be avoiding unnecessary threads.
The hit is negligible here because as soon as the first await
is hit, the threadpool thread is released and there isn't anything else after the await
which will need the threadpool thread, however, it's still being borrowed for zero gain. You can simply return the result of Task.Factory.FromAsync
from the implementations to make them truly asynchronous.
Would love to be able to use connection strings similar to how the newer SDK versions allow connections to be created
I am using the latest version of the library to connect to the CRM but I get the error "Authentication to MSA services is not supported"
I can't understand why that error is thrown ?
I don't get the error while using OrgService from the CRM package but I do get error when I use OrgService from this library.
Not to mention Async methods fails without throwing any errors.
Hello,
First of all, thank you for the hard work on this !
Trying to work out on how to "call" the async proxy.
Can you post a small working sample ?
i can't seem to figure out how to make a async connection.
// Create Async Proxy directly
// (implements both IDiscoveryService and IAsyncDiscoveryService)
var asyncService =
new AsyncDiscoveryServiceProxy(
OrganizationUri,
HomeRealmUri,
Credentials,
null);
Thank you in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.