davidyack / Xrm.Tools.CRMWebAPI

This is an API helper for working with the Common Data Service (CDS) Web API
MIT License
143 stars 73 forks source link

How to refresh access token for long running process? #87

Closed simba22042 closed 4 years ago

simba22042 commented 5 years ago

Hi,

How do I go about refreshing the access token if I have a long-running process?

davidyack commented 5 years ago

You can provide a function where you control the refresh in the config using: public Func<string, Task> GetAccessToken { get; set; }