Ejemplo n.º 1
0
 /* ----------------------------------------------------------------- */
 ///
 /// HttpMonitor
 ///
 /// <summary>
 /// オブジェクトを初期化します。
 /// </summary>
 ///
 /// <param name="handler">HTTP 通信用ハンドラ</param>
 ///
 /* ----------------------------------------------------------------- */
 public HttpMonitor(ContentHandler <TValue> handler) : base(handler)
 {
     Timer.SubscribeAsync(WhenTick);
 }
Ejemplo n.º 2
0
 /* ----------------------------------------------------------------- */
 ///
 /// HttpMonitorBase
 ///
 /// <summary>
 /// オブジェクトを初期化します。
 /// </summary>
 ///
 /// <param name="handler">HTTP 通信用ハンドラ</param>
 ///
 /* ----------------------------------------------------------------- */
 protected HttpMonitorBase(ContentHandler <TValue> handler)
 {
     Handler = handler;
     Timeout = TimeSpan.FromSeconds(2);
     _http   = HttpClientFactory.Create(handler);
 }