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