Ejemplo n.º 1
0
        private static StateTransition CreateTransitionToConnected()
        {
            StateTransition st = new StateTransition(ConnectionStateIdentifier.Connected);

            st.AddTrigger(connectionEstablishedTrigger);
            return(st);
        }
Ejemplo n.º 2
0
        private static StateTransition CreateTransitionToDisconnected()
        {
            StateTransition st = new StateTransition(ConnectionStateIdentifier.Disconnected);

            st.AddTrigger(connectionDroppedTrigger);
            return(st);
        }