Giter Site home page Giter Site logo

kind-serge / microsoft.xrm.sdk.async Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 10.0 49 KB

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

License: MIT License

C# 100.00%
async dynamics-crm microsoft sdk xrm

microsoft.xrm.sdk.async's People

Contributors

saebamini avatar tyrotoxin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

microsoft.xrm.sdk.async's Issues

Task.Run?

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.

Authentication to MSA services is not supported

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.

Any way to post a bit more details on using the

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.