SNTP (Simple Network Time Protocol) Client입니다.
Example #1
0
        private void ValidateUsingNetworkTime()
        {
            if (NetworkInterface.GetIsNetworkAvailable() == false)
            {
                return;
            }

            var sntp = new SntpClient(TimeServers);

            sntp.BeginGetDate(time => {
                if (time > ExpirationDate)
                {
                    RaiseLicenseInvalidated();
                }
            },
                              () => {
                // ignore
            });
        }
        private void ValidateUsingNetworkTime() {
            if(NetworkInterface.GetIsNetworkAvailable() == false)
                return;

            var sntp = new SntpClient(TimeServers);

            sntp.BeginGetDate(time => {
                                  if(time > ExpirationDate)
                                      RaiseLicenseInvalidated();
                              },
                              () => {
                                  // ignore
                              });
        }