EngineTimeStamp() private method

Get engine time stamp value (last time engine boots and time values were retrieved from the SNMP agent).
private EngineTimeStamp ( ) : System.DateTime
return System.DateTime
Esempio n. 1
0
        /// <summary>Copy constructor. Initialize the class with the values of the parameter class values.</summary>
        /// <param name="second">Parameter class.</param>
        public SecureAgentParameters(SecureAgentParameters second)
            : this()
        {
            contextEngineId.Set(second.ContextEngineId);
            contextName.Set(second.ContextName);
            engineBoots.Value = second.EngineBoots.Value;
            engineId.Set(second.EngineId);
            engineTime.Value     = second.EngineTime.Value;
            engineTimeStamp      = second.EngineTimeStamp();
            maxMessageSize.Value = second.MaxMessageSize.Value;
            privacyProtocol      = second.Privacy;
            privacySecret.Set(second.PrivacySecret);
            authenticationProtocol = second.Authentication;
            authenticationSecret.Set(second.AuthenticationSecret);
            reportable = second.Reportable;
            securityName.Set(second.SecurityName);

            if (second.AuthenticationKey != null)
            {
                authenticationKey = (byte[])second.AuthenticationKey.Clone();
            }

            if (second.PrivacyKey != null)
            {
                privacyKey = (byte[])second.PrivacyKey.Clone();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Copy constructor. Initialize the class with the values of the parameter class values.
 /// </summary>
 /// <param name="second">Parameter class.</param>
 public SecureAgentParameters(SecureAgentParameters second)
     : this()
 {
     this._contextEngineId.Set(second.ContextEngineId);
     this._contextName.Set(second.ContextName);
     this._engineBoots.Value = second.EngineBoots.Value;
     this._engineId.Set(second.EngineId);
     this._engineTime.Value     = second.EngineTime.Value;
     this._engineTimeStamp      = second.EngineTimeStamp();
     this._maxMessageSize.Value = second.MaxMessageSize.Value;
     this._privacyProtocol      = second.Privacy;
     this._privacySecret.Set(second.PrivacySecret);
     this._authenticationProtocol = second.Authentication;
     this._authenticationSecret.Set(second.AuthenticationSecret);
     this._reportable = second.Reportable;
     this._securityName.Set(second.SecurityName);
 }
 /// <summary>
 /// Copy constructor. Initialize the class with the values of the parameter class values.
 /// </summary>
 /// <param name="second">Parameter class.</param>
 public SecureAgentParameters(SecureAgentParameters second)
     : this()
 {
     this._contextEngineId.Set(second.ContextEngineId);
     this._contextName.Set(second.ContextName);
     this._engineBoots.Value = second.EngineBoots.Value;
     this._engineId.Set(second.EngineId);
     this._engineTime.Value = second.EngineTime.Value;
     this._engineTimeStamp = second.EngineTimeStamp();
     this._maxMessageSize.Value = second.MaxMessageSize.Value;
     this._privacyProtocol = second.Privacy;
     this._privacySecret.Set(second.PrivacySecret);
     this._authenticationProtocol = second.Authentication;
     this._authenticationSecret.Set(second.AuthenticationSecret);
     this._reportable = second.Reportable;
     this._securityName.Set(second.SecurityName);
     if( second.AuthenticationKey != null )
         this._authenticationKey = (byte[])second.AuthenticationKey.Clone();
     if( second.PrivacyKey != null )
         this._privacyKey = (byte[])second.PrivacyKey.Clone();
 }