コード例 #1
0
 public ChainInfo(Policy policy) : base(policy,
                                        HttpRequestMessageBuilder.CreateNew()
                                        .AddMethod(HttpMethod.Get)
                                        .AddRequestUri(new Uri("https://chain.so//api/v2/get_info/"))
                                        // .AddHeaders(ToDo);
                                        .Build())
 {
 }
コード例 #2
0
 public TickerInfo(Policy policy) : base(policy,
                                         HttpRequestMessageBuilder.CreateNew()
                                         .AddMethod(HttpMethod.Get)
                                         .AddRequestUri(new Uri("https://blockchain.info/ticker"))
                                         // .AddHeaders(ToDo);
                                         .Build()
                                         )
 {
 }
コード例 #3
0
 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()
                           )
 {
 }
コード例 #4
0
 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()
                            )
 {
 }