BeginGetDate() public method

public BeginGetDate ( Action getTime, System.Action failure ) : void
getTime Action
failure System.Action
return void
Ejemplo n.º 1
0
        private void ValidateUsingNetworkTime()
        {
            if (NetworkInterface.GetIsNetworkAvailable() == false)
            {
                return;
            }

            var sntp = new SntpClient(TimeServers);

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

            var sntp = new SntpClient(TimeServers);

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