public TypedBlockActionHandler(IBlockActionHandler <TAction> handler) => _handler = handler;
public static IAsyncBlockActionHandler ToBlockActionHandler(this IBlockActionHandler handler) => new BlockActionHandlerAsyncWrapper(handler);
public SlackServiceConfiguration RegisterBlockActionHandler <TAction>(IBlockActionHandler <TAction> handler) where TAction : BlockAction { return(RegisterBlockActionHandler(c => handler)); }
public static IAsyncBlockActionHandler ToBlockActionHandler <TAction>(this IBlockActionHandler <TAction> handler, string actionId) where TAction : BlockAction => new SpecificBlockActionHandler(actionId, new TypedBlockActionHandler <TAction>(handler).ToBlockActionHandler());
public static IAsyncBlockActionHandler ToBlockActionHandler <TAction>(this IBlockActionHandler <TAction> handler) where TAction : BlockAction => new TypedBlockActionHandler <TAction>(handler).ToBlockActionHandler();
public TConfig RegisterBlockActionHandler(IBlockActionHandler handler) => RegisterAsyncBlockActionHandler(handler.ToBlockActionHandler());
public BlockActionHandlerAsyncWrapper(IBlockActionHandler syncHandler) => _syncHandler = syncHandler;
public TConfig RegisterBlockActionHandler <TAction>(IBlockActionHandler <TAction> handler) where TAction : BlockAction => RegisterAsyncBlockActionHandler(handler.ToBlockActionHandler());
public TConfig RegisterBlockActionHandler <TAction>(string actionId, IBlockActionHandler <TAction> handler) where TAction : BlockAction => RegisterAsyncBlockActionHandler(handler.ToBlockActionHandler(actionId));
public void AddHandler <TAction>(IBlockActionHandler <TAction> handler) where TAction : BlockAction => _slackBlockActions.AddHandler(handler);
public void AddHandler <TAction>(IBlockActionHandler <TAction> handler) where TAction : BlockAction => _handlers.Add(handler);
public SpecificBlockActionHandler(string actionId, IBlockActionHandler <TAction> handler) { _actionId = actionId; _handler = handler; }