コード例 #1
0
ファイル: BeatResponse.cs プロジェクト: mingkongbin/anycmd
 public void SetData(IBeatResponse response)
 {
     if (response == null)
     {
         throw new ArgumentNullException("response");
     }
     this.IsAlive = response.IsAlive;
     this.Status = response.Status;
     this.ReasonPhrase = response.ReasonPhrase;
     this.Description = response.Description;
 }
コード例 #2
0
 public void SetData(IBeatResponse response)
 {
     if (response == null)
     {
         throw new ArgumentNullException("response");
     }
     this.IsAlive      = response.IsAlive;
     this.Status       = response.Status;
     this.ReasonPhrase = response.ReasonPhrase;
     this.Description  = response.Description;
 }