public AuditorContext(AuditorSettings settings, IStorage storage, StellarDataProviderBase stellarDataProvider, bool useLegacyOrderbook = false) : base(settings, storage, stellarDataProvider, useLegacyOrderbook) { AppState = new AuditorStateManager(this); AppState.StateChanged += AppState_StateChanged; QuantumHandler = new AuditorQuantumHandler(this); OutgoingMessageStorage = new OutgoingMessageStorage(); OutgoingResultsStorage = new OutgoingResultsStorage(this); MessageHandlers = new MessageHandlers <AuditorWebSocketConnection, AuditorContext>(this); }
public AlphaContext(AlphaSettings settings, IStorage storage, StellarDataProviderBase stellarDataProvider, bool useLegacyOrderbook = false) : base(settings, storage, stellarDataProvider, useLegacyOrderbook) { AppState = new AlphaStateManager(this); AppState.StateChanged += AppState_StateChanged; QuantumHandler = new AlphaQuantumHandler(this); ConnectionManager = new ConnectionManager(this); SubscriptionsManager = new SubscriptionsManager(); InfoConnectionManager = new InfoConnectionManager(this); Catchup = new AlphaCatchup(this); MessageHandlers = new MessageHandlers <AlphaWebSocketConnection, AlphaContext>(this); InfoCommandsHandlers = new InfoCommandsHandlers(this); }
protected override async Task <bool> HandleMessage(MessageEnvelope envelope) { return(await MessageHandlers <AuditorWebSocketConnection> .HandleMessage(this, envelope)); }