示例#1
0
 public SlackRequestHandler(
     IEventHandler eventHandler,
     IAsyncBlockActionHandler blockActionHandler,
     IBlockOptionProvider blockOptionProvider,
     IInteractiveMessageHandler interactiveMessageHandler,
     IAsyncMessageShortcutHandler messageShortcutHandler,
     IAsyncGlobalShortcutHandler globalShortcutHandler,
     IOptionProvider optionProvider,
     IDialogSubmissionHandler dialogSubmissionHandler,
     IAsyncViewSubmissionHandler viewSubmissionHandler,
     IAsyncSlashCommandHandler slashCommandHandler,
     SlackJsonSettings jsonSettings)
 {
     _eventHandler              = eventHandler;
     _blockActionHandler        = blockActionHandler;
     _blockOptionProvider       = blockOptionProvider;
     _interactiveMessageHandler = interactiveMessageHandler;
     _messageShortcutHandler    = messageShortcutHandler;
     _globalShortcutHandler     = globalShortcutHandler;
     _optionProvider            = optionProvider;
     _dialogSubmissionHandler   = dialogSubmissionHandler;
     _viewSubmissionHandler     = viewSubmissionHandler;
     _slashCommandHandler       = slashCommandHandler;
     _jsonSettings              = jsonSettings;
 }
 public TConfig RegisterAsyncViewSubmissionHandler(string callbackId, IAsyncViewSubmissionHandler handler) =>
 Chain(() => AddViewSubmissionHandler(callbackId, handler));
 protected abstract void AddViewSubmissionHandler(string callbackId, IAsyncViewSubmissionHandler handler);
示例#4
0
 protected override void AddViewSubmissionHandler(string callbackId, IAsyncViewSubmissionHandler handler) => AddKeyedHandler(callbackId, handler);