private void CheckFromBootstrapServer(object sender, CoapRequestEventArgs e)
 {
     if (!this.Object.Client.IsFromBootstrapServer(e.Request))
     {
         throw new CoapException(CoapCode.Unauthorized);
     }
 }
示例#2
0
 private void CurrentTime_OnBeforeGet(object sender, CoapRequestEventArgs e)
 {
     this.currentTime.TimeValue = DateTime.Now;
 }