microsoftgraph / msgraph-sdk-dotnet-auth

Archived - use the TokenCredential classes provided by Azure.Identity. https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme
https://graph.microsoft.com
MIT License
78 stars 19 forks source link

Move Application Factory extensions to static methods on providers #10

Closed darrelmiller closed 5 years ago

darrelmiller commented 5 years ago

https://github.com/microsoftgraph/msgraph-sdk-dotnet-auth/blob/1b150069aa7e17023aa5513afaaf23fcc39bf136/Microsoft.Graph.Auth/Microsoft.Graph.Auth/Extensions/ConfidentialClientApplicationExtension.cs#L8

By putting these factory methods on the Provider classes we can make them specific to the scenario they are designed to support and eliminate parameters that are unneeded for that scenario.