public AuthorizationService(
     IMemoryCache memoryCache,
     TelegramChatService chatService,
     IDataProtectionProvider dataProtectionProvider)
 {
     cache            = memoryCache;
     this.chatService = chatService;
     dataProtector    = dataProtectionProvider.CreateProtector("AccessToken");
 }
Beispiel #2
0
 public AuthorizationController(
     TelegramBot bot,
     AuthorizationService authorizationService,
     CrmService crmService,
     UserService userService,
     TelegramChatService telegramChatService)
 {
     telegramBot = bot;
     this.authorizationService = authorizationService;
     this.crmService           = crmService;
     this.userService          = userService;
     this.telegramChatService  = telegramChatService;
 }
Beispiel #3
0
 public BroadcastMessageCommand(TelegramChatService chatService, ConversationService conversationService)
 {
     this.chatService         = chatService;
     this.conversationService = conversationService;
 }