Beispiel #1
0
 private IObservable <UnitDto> SetCurrencyPairState(IConnection connection, CurrencyPairStateDto request)
 {
     return(Observable.FromAsync(() =>
     {
         connection.SetAuthToken(_authTokenProvider.AuthToken);
         return connection.ControlHubProxy.Invoke <UnitDto>(ServiceConstants.Server.SetCurrencyPairState, request);
     }));
 }
Beispiel #2
0
 private IObservable <FeedThroughputDto> GetPriceFeedThroughput(IConnection connection)
 {
     return(Observable.FromAsync(() =>
     {
         connection.SetAuthToken(_authTokenProvider.AuthToken);
         return connection.ControlHubProxy.Invoke <FeedThroughputDto>(ServiceConstants.Server.GetPriceFeedThroughput);
     }));
 }
Beispiel #3
0
 private IObservable <IEnumerable <CurrencyPairStateDto> > GetCurrencyPairStates(IConnection connection)
 {
     return(Observable.FromAsync(() =>
     {
         connection.SetAuthToken(_authTokenProvider.AuthToken);
         return connection.ControlHubProxy.Invoke <IEnumerable <CurrencyPairStateDto> >(ServiceConstants.Server.GetCurrencyPairStates);
     }));
 }