Exemplo n.º 1
0
        public async Task <LogOnInfo> Connect(string name, string password)
        {
            _connection = await AuthenticationProvider.Connect(name, password);

            if (TraceWriter != null)
            {
                _connection.TraceWriter = TraceWriter;
            }

            _connection.TraceLevel = TraceLevel;

            _chat = _connection.CreateHubProxy("chat");

            SubscribeToEvents();

            await _connection.Start(_transportFactory());

            return(await LogOn());
        }