Example #1
0
        public WorkflowBuilder Build()
        {
            this._workflow.MapHandlers(this._client);

            this._client.LoginAsync(TokenType.Bot, this._token).Wait();
            this._client.StartAsync().Wait();

            ServerInitializer.Initialize(this._client, this._context);
            return(this);
        }
Example #2
0
        public WorkflowBuilder Build()
        {
            _workflow.Initialize();
            _workflow.MapHandlers(_client);

            _client.LoginAsync(TokenType.Bot, _token).Wait();
            _client.StartAsync().Wait();

            ServerInitializer.Initialize(_client);
            return(this);
        }