コード例 #1
0
 // Token: 0x0600027C RID: 636 RVA: 0x0000CCA1 File Offset: 0x0000AEA1
 internal static string ConvertBackEndCookieEntryTypeToString(BackEndCookieEntryType entryType)
 {
     if (entryType == BackEndCookieEntryType.Server)
     {
         return(BackEndCookieEntryBase.BackEndCookieEntryTypeServerName);
     }
     if (entryType != BackEndCookieEntryType.Database)
     {
         throw new InvalidOperationException(string.Format("Unknown cookie type: {0}", entryType));
     }
     return(BackEndCookieEntryBase.BackEndCookieEntryTypeDatabaseName);
 }
コード例 #2
0
        internal static string ConvertBackEndCookieEntryTypeToString(BackEndCookieEntryType entryType)
        {
            switch (entryType)
            {
            case BackEndCookieEntryType.Server:
                return(BackEndCookieEntryBase.BackEndCookieEntryTypeServerName);

            case BackEndCookieEntryType.Database:
                return(BackEndCookieEntryBase.BackEndCookieEntryTypeDatabaseName);

            default:
                throw new InvalidOperationException(string.Format("Unknown cookie type: {0}", entryType));
            }
        }
コード例 #3
0
 // Token: 0x0600027D RID: 637 RVA: 0x0000CCCD File Offset: 0x0000AECD
 internal static bool TryGetBackEndCookieEntryTypeFromString(string entryTypeString, out BackEndCookieEntryType entryType)
 {
     if (string.Equals(entryTypeString, BackEndCookieEntryBase.BackEndCookieEntryTypeDatabaseName, StringComparison.OrdinalIgnoreCase))
     {
         entryType = BackEndCookieEntryType.Database;
         return(true);
     }
     if (string.Equals(entryTypeString, BackEndCookieEntryBase.BackEndCookieEntryTypeServerName, StringComparison.OrdinalIgnoreCase))
     {
         entryType = BackEndCookieEntryType.Server;
         return(true);
     }
     entryType = BackEndCookieEntryType.Server;
     return(false);
 }
コード例 #4
0
 // Token: 0x06000274 RID: 628 RVA: 0x0000CC4A File Offset: 0x0000AE4A
 protected BackEndCookieEntryBase(BackEndCookieEntryType entryType, ExDateTime expiryTime)
 {
     this.EntryType  = entryType;
     this.ExpiryTime = expiryTime;
 }