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