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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 protected override async Task <bool> HandleMessage(MessageEnvelope envelope)
 {
     return(await MessageHandlers <AuditorWebSocketConnection> .HandleMessage(this, envelope));
 }