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 static IAsyncBlockActionHandler ToBlockActionHandler <TAction>(this IAsyncBlockActionHandler <TAction> handler) where TAction : BlockAction => new TypedAsyncBlockActionHandler <TAction>(handler);
public SpecificBlockActionHandler(string actionId, IAsyncBlockActionHandler handler) { _actionId = actionId; _handler = handler; }
public TConfig RegisterAsyncBlockActionHandler(IAsyncBlockActionHandler handler) => Chain(() => AddBlockActionHandler(handler));
public static IAsyncBlockActionHandler ToBlockActionHandler <TAction>(this IAsyncBlockActionHandler <TAction> handler, string actionId) where TAction : BlockAction => new SpecificBlockActionHandler(actionId, new TypedAsyncBlockActionHandler <TAction>(handler));
public TConfig RegisterAsyncBlockActionHandler <TAction>(IAsyncBlockActionHandler <TAction> handler) where TAction : BlockAction => RegisterAsyncBlockActionHandler(handler.ToBlockActionHandler());
public TConfig RegisterAsyncBlockActionHandler <TAction>(string actionId, IAsyncBlockActionHandler <TAction> handler) where TAction : BlockAction => RegisterAsyncBlockActionHandler(handler.ToBlockActionHandler(actionId));
protected abstract void AddBlockActionHandler(IAsyncBlockActionHandler handler);
public TypedAsyncBlockActionHandler(IAsyncBlockActionHandler <TAction> handler) => _handler = handler;
protected override void AddBlockActionHandler(IAsyncBlockActionHandler handler) => AddCollectionHandler(handler);