/// <summary> /// Initializes a new instance of the <see cref="ClientExtension"/> class. /// </summary> /// <param name="type">Extension type</param> /// <param name="scope">Extension install scope</param> /// <param name="manifestStream">Manifest stream, can be null</param> /// <param name="marketplaceAssetID">The asset ID for Office Marketplace</param> /// <param name="marketplaceContentMarket">The content market for Office Marketplace</param> /// <param name="isAvailable">Whether extension is available</param> /// <param name="isMandatory">Whether extension is mandatory</param> /// <param name="isEnabledByDefault">Whether extension is enabled by default</param> /// <param name="providedTo">Who the extension is provided for (e.g. "entire org" or "specific users")</param> /// <param name="specificUsers">List of users extension is provided for, can be null</param> /// <param name="appStatus">App status</param> /// <param name="etoken">Etoken</param> public ClientExtension( ExtensionType type, ExtensionInstallScope scope, Stream manifestStream, string marketplaceAssetID, string marketplaceContentMarket, bool isAvailable, bool isMandatory, bool isEnabledByDefault, ClientExtensionProvidedTo providedTo, StringList specificUsers, string appStatus, string etoken) : this() { this.Type = type; this.Scope = scope; this.ManifestStream = manifestStream; this.MarketplaceAssetID = marketplaceAssetID; this.MarketplaceContentMarket = marketplaceContentMarket; this.IsAvailable = isAvailable; this.IsMandatory = isMandatory; this.IsEnabledByDefault = isEnabledByDefault; this.ProvidedTo = providedTo; this.SpecificUsers = specificUsers; this.AppStatus = appStatus; this.Etoken = etoken; }
// Token: 0x06000B53 RID: 2899 RVA: 0x0002DE04 File Offset: 0x0002C004 internal static void ConfigureOrgExtension(string domain, string extensionId, bool isEnabled, bool isMandatory, bool isEnabledByDefault, ClientExtensionProvidedTo providedTo, string[] specificUsers) { OrgExtensionTable.ExecuteWebServicesAction(delegate { OrgExtensionTable.RequestData arg = new OrgExtensionTable.RequestData(); ExchangeService exchangeService = OrgExtensionTable.CreateExchangeServiceDelegate(domain, arg); if (exchangeService == null) { return; } ClientExtension clientExtension = new ClientExtension(0, 0, null, null, null, isEnabled, isMandatory, isEnabledByDefault, providedTo, (specificUsers == null) ? null : new StringList(specificUsers), string.Empty, string.Empty); exchangeService.SetClientExtension(new List <SetClientExtensionAction> { new SetClientExtensionAction(2, extensionId, clientExtension) }); }); }
public OrgApp(DefaultStateForUser?defaultStateForUser, ClientExtensionProvidedTo providedTo, MultiValuedProperty <ADObjectId> userList, string marketplaceAssetID, string marketplaceContentMarket, string providerName, Uri iconURL, string extensionId, string version, ExtensionType?type, ExtensionInstallScope?scope, RequestedCapabilities?requirements, string displayName, string description, bool enabled, string manifestXml, string etoken, EntitlementTokenData eTokenData, string appStatus, ADObjectId mailboxOwnerId) : base(defaultStateForUser, marketplaceAssetID, marketplaceContentMarket, providerName, iconURL, extensionId, version, type, scope, requirements, displayName, description, enabled, manifestXml, mailboxOwnerId, etoken, eTokenData, appStatus) { this.ProvidedTo = providedTo; this.UserList = userList; }