Esempio n. 1
0
 public void StateChanged(ConnectionStateContext state)
 {
     Emit(new ConnectionChangedEvent(state));
 }
Esempio n. 2
0
 public ConnectionChangedCommand(ConnectionId id, ConnectionStateContext param) : base(id)
 {
     Parameter = param;
 }
Esempio n. 3
0
 public void Apply(ConnectionChangedEvent evt)
 {
     State = new ConnectionStateContext(evt.State.Value);
 }
Esempio n. 4
0
 public void Apply(ConnectionClosedEvent evt)
 {
     State = new ConnectionStateContext(ConnectionStateEnum.Closed);
 }
Esempio n. 5
0
 public void Apply(ConnectionOpenedEvent evt)
 {
     Uri   = evt.Uri;
     State = new ConnectionStateContext(ConnectionStateEnum.Open);
 }
Esempio n. 6
0
 public ConnectionState()
 {
     State = new ConnectionStateContext(ConnectionStateEnum.Closed);
 }
Esempio n. 7
0
 public ConnectionChangedEvent(ConnectionStateContext state)
 {
     State = state;
 }