public void StateChanged(ConnectionStateContext state) { Emit(new ConnectionChangedEvent(state)); }
public ConnectionChangedCommand(ConnectionId id, ConnectionStateContext param) : base(id) { Parameter = param; }
public void Apply(ConnectionChangedEvent evt) { State = new ConnectionStateContext(evt.State.Value); }
public void Apply(ConnectionClosedEvent evt) { State = new ConnectionStateContext(ConnectionStateEnum.Closed); }
public void Apply(ConnectionOpenedEvent evt) { Uri = evt.Uri; State = new ConnectionStateContext(ConnectionStateEnum.Open); }
public ConnectionState() { State = new ConnectionStateContext(ConnectionStateEnum.Closed); }
public ConnectionChangedEvent(ConnectionStateContext state) { State = state; }