Ejemplo n.º 1
0
 /// <summary>
 /// Use a <a href="https://api.slack.com/apis/connections/socket">socket mode</a> client instead of ASP.NET middleware.
 /// Use this for testing your app without needing to host it publicly.
 /// </summary>
 public SlackEndpointConfiguration UseSocketMode(bool useSocketMode = true, SocketModeConnectionOptions connectionOptions = null)
 {
     SocketMode = useSocketMode;
     SocketModeConnectionOptions = connectionOptions;
     return(this);
 }
Ejemplo n.º 2
0
 public Task Connect(SocketModeConnectionOptions connectionOptions = null, CancellationToken?cancellationToken = null) =>
 _socket.Connect(connectionOptions, cancellationToken);
Ejemplo n.º 3
0
 /// <summary>
 /// Use a <a href="https://api.slack.com/apis/connections/socket">socket mode</a> client instead of ASP.NET middleware.
 /// Use this for testing your app without needing to host it publicly.
 /// </summary>
 public SlackEndpointConfiguration UseSocketMode(SocketModeConnectionOptions connectionOptions = null) => UseSocketMode(true, connectionOptions);