Exemplo n.º 1
0
 private Sku(string skuCode, ServerEditionType serverEdition, string name, InformationStoreSkuLimits informationStoreSkuLimits)
 {
     this.skuCode                   = skuCode;
     this.serverEdition             = serverEdition;
     this.name                      = name;
     this.informationStoreSkuLimits = informationStoreSkuLimits;
 }
Exemplo n.º 2
0
        public static string EncryptServerEdition(ServerEditionType edition)
        {
            ServerEditionValue serverEditionValue;
            ServerEditionValue serverEditionValue2;

            switch (edition)
            {
            case ServerEditionType.Standard:
                serverEditionValue  = ServerEditionValue.Standard;
                serverEditionValue2 = ServerEditionValue.Standard;
                break;

            case ServerEditionType.StandardEvaluation:
                serverEditionValue  = ServerEditionValue.Standard;
                serverEditionValue2 = ServerEditionValue.Evaluation;
                break;

            case ServerEditionType.Enterprise:
                serverEditionValue  = ServerEditionValue.Enterprise;
                serverEditionValue2 = ServerEditionValue.Enterprise;
                break;

            case ServerEditionType.EnterpriseEvaluation:
                serverEditionValue  = ServerEditionValue.Enterprise;
                serverEditionValue2 = ServerEditionValue.Evaluation;
                break;

            case ServerEditionType.Coexistence:
                serverEditionValue  = ServerEditionValue.Coexistence;
                serverEditionValue2 = ServerEditionValue.Coexistence;
                break;

            case ServerEditionType.CoexistenceEvaluation:
                serverEditionValue  = ServerEditionValue.Coexistence;
                serverEditionValue2 = ServerEditionValue.Evaluation;
                break;

            default:
                throw new ArgumentException(DataStrings.UnsupportServerEdition(edition.ToString()), "edition");
            }
            ServerEdition serverEdition = new ServerEdition(serverEditionValue, serverEditionValue2);

            return(serverEdition.EncryptServerType());
        }
        // Token: 0x06005518 RID: 21784 RVA: 0x001336DC File Offset: 0x001318DC
        private static void EditionSetter(object value, IPropertyBag propertyBag)
        {
            ServerEditionType edition = (ServerEditionType)value;

            propertyBag[FrontendTransportServerADSchema.ServerType] = ServerEdition.EncryptServerEdition(edition);
        }