コード例 #1
0
 public virtual void Copy(ISecurityTokenCache existingobject)
 {
     if ((existingobject == null))
     {
         return;
     }
     this._Id                        = existingobject._Id;
     this._ContextID                 = existingobject._ContextID;
     this._EndpointID                = existingobject._EndpointID;
     this._KeyGeneration             = existingobject._KeyGeneration;
     this._ExpiryTime                = existingobject._ExpiryTime;
     this._RollingExpiryTime         = existingobject._RollingExpiryTime;
     this._SessionSecurityTokenValue = existingobject._SessionSecurityTokenValue;
     this._SessionSecurityTokenID    = existingobject._SessionSecurityTokenID;
     this._UserName                  = existingobject._UserName;
 }
コード例 #2
0
 public virtual bool IsEqual(ISecurityTokenCache existingobject)
 {
     if ((existingobject == null))
     {
         return(false);
     }
     if ((this._Id != existingobject._Id))
     {
         return(false);
     }
     if ((this._ContextID != existingobject._ContextID))
     {
         return(false);
     }
     if ((this._EndpointID != existingobject._EndpointID))
     {
         return(false);
     }
     if ((this._KeyGeneration != existingobject._KeyGeneration))
     {
         return(false);
     }
     if ((this._ExpiryTime != existingobject._ExpiryTime))
     {
         return(false);
     }
     if ((this._RollingExpiryTime != existingobject._RollingExpiryTime))
     {
         return(false);
     }
     if ((this._SessionSecurityTokenValue != existingobject._SessionSecurityTokenValue))
     {
         return(false);
     }
     if ((this._SessionSecurityTokenID != existingobject._SessionSecurityTokenID))
     {
         return(false);
     }
     if ((this._UserName != existingobject._UserName))
     {
         return(false);
     }
     return(true);
 }