예제 #1
0
 public BotActionContextInitBehavior(
     IBotActionContextAccessor botContextAccessor,
     IBotUserProvider botUserProvider)
 {
     _botContextAccessor = botContextAccessor;
     _botUserProvider    = botUserProvider;
 }
예제 #2
0
 public HandleActionExceptionsBehavior(
     IBotActionContextAccessor contextAccessor,
     IMessageLocalizer <BotResources> localizer,
     ITransport <SendTelegramReply> reply)
 {
     _contextAccessor = contextAccessor;
     _localizer       = localizer;
     _reply           = reply;
 }
 public AuthorizeBotActionRequestBehavior(
     IOptions <BotFeatureOptions> optionsProvider,
     ILogger <AuthorizeBotActionRequestBehavior <TRequest, TResult> > logger,
     IBotActionContextAccessor contextAccessor,
     IRequestHandlerFinder handlerFinder)
 {
     _optionsProvider = optionsProvider;
     _logger          = logger;
     _contextAccessor = contextAccessor;
     _handlerFinder   = handlerFinder;
 }