public ChainInfo(Policy policy) : base(policy, HttpRequestMessageBuilder.CreateNew() .AddMethod(HttpMethod.Get) .AddRequestUri(new Uri("https://chain.so//api/v2/get_info/")) // .AddHeaders(ToDo); .Build()) { }
public TickerInfo(Policy policy) : base(policy, HttpRequestMessageBuilder.CreateNew() .AddMethod(HttpMethod.Get) .AddRequestUri(new Uri("https://blockchain.info/ticker")) // .AddHeaders(ToDo); .Build() ) { }
public ChainInfo() : base(Policy.TimeoutAsync(new TimeSpan(0, 0, 30), TimeoutStrategy.Optimistic), HttpRequestMessageBuilder.CreateNew() .AddMethod(HttpMethod.Get) .AddRequestUri(new Uri("https://chain.so//api/v2/get_info/")) // .AddHeaders(ToDo); .Build() ) { }
public TickerInfo() : base(Policy.TimeoutAsync(new TimeSpan(0, 0, 30), TimeoutStrategy.Optimistic), HttpRequestMessageBuilder.CreateNew() .AddMethod(HttpMethod.Get) .AddRequestUri(new Uri("https://blockchain.info/ticker")) // .AddHeaders(ToDo); .Build() ) { }