Пример #1
0
        Task Disconnected(IContext context)
        {
            switch (context.Message)
            {
            case (Connect, TaskCompletionSource <Boolean> completion): {
                _state.ReadyComplete      = completion;
                _state.EndpointEnumerator = _connectionConfiguration.GetEndpointEnumerator();
                _behaviour.Become(Connecting);

                TryNextEndpoint(context);
                break;
            }
            }
            return(Done);
        }