예제 #1
0
 public TokenManager(IOptions <BotCredential> botCredential, IMemoryCache memoryCache)
 {
     this._httpClient             = new HttpClient();
     this._memoryCache            = memoryCache;
     this._botCredential          = botCredential.Value;
     this._jsonSerializerSettings = new CamelCaseJsonSerializerSettings();
 }
예제 #2
0
 public IntentManager(IOptions <BotCredential> botCredential, ITokenManager tokenManager)
 {
     this._tokenManager  = tokenManager;
     this._botCredential = botCredential.Value;
 }
예제 #3
0
 public BotController(IOptions <BotCredential> botCredential, ITokenManager tokenManager, IIntentManager intentManager)
 {
     this._tokenManager  = tokenManager;
     this._intentManager = intentManager;
     this._botCredential = botCredential.Value;
 }