Example #1
0
 public ContosoHandshakeController(IChatAdminThreadStore store, IUserTokenManager userTokenManager, IConfiguration chatConfiguration)
 {
     _store                    = store;
     _userTokenManager         = userTokenManager;
     _chatGatewayUrl           = Utils.ExtractApiChatGatewayUrl(chatConfiguration["ResourceConnectionString"]);
     _resourceConnectionString = chatConfiguration["ResourceConnectionString"];
 }
Example #2
0
 /// <summary>
 /// Create a Groove client with user authentication.
 /// </summary>
 /// <param name="microsoftAppClientId">Microsoft application client id</param>
 /// <param name="microsoftAppClientSecret">Microsoft application secret</param>
 /// <param name="userTokenManager"><see cref="IUserTokenManager"/> implementation</param>
 public static IGrooveClient CreateGrooveClient(
     string microsoftAppClientId,
     string microsoftAppClientSecret,
     IUserTokenManager userTokenManager)
 {
     return(new GrooveClient(
                GetOrAddMicrosoftAccountAuthenticationCache(microsoftAppClientId, microsoftAppClientSecret),
                userTokenManager));
 }
Example #3
0
 public ContosoHandshakeController(IChatAdminThreadStore store, IOptions <ContosoSettings> contosoSettings, IUserTokenManager userTokenManager)
 {
     _store            = store;
     _settings         = contosoSettings.Value;
     _userTokenManager = userTokenManager;
 }
Example #4
0
 internal GrooveClient(MicrosoftAccountAuthenticationCache microsoftAccountAuthenticationCache, IUserTokenManager userTokenManager)
     : this(microsoftAccountAuthenticationCache)
 {
     _userTokenManager = userTokenManager;
 }
Example #5
0
 public TokenController(IUserTokenManager userTokenManager, IGenericMapper mapper, IClock clock)
 {
     _userTokenManager = userTokenManager;
     _mapper           = mapper;
     _clock            = clock;
 }