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