public MicrosoftAuthentication(TeamsPresencePublisherOptions options) { var storageProperties = new StorageCreationPropertiesBuilder("TeamsPresencePublisher.msalcache.bin", options.CacheFolder, ClientId) .Build(); _msalCacheHelper = MsalCacheHelper.CreateAsync(storageProperties).GetAwaiter().GetResult(); _publicClientApplication = BuildPublicClientApplication(); AuthProvider = new InteractiveAuthenticationProvider(_publicClientApplication, s_scopes); }
public OptionsService(TeamsPresencePublisherOptions options) { _options = options; }