protected override void InternalProcessRecord() { TaskLogger.LogEnter(); base.InternalProcessRecord(); if (this.scriptMapPhysicalPath != null && !IisUtility.IsAnyWebVirtualDirUsingThisExecutableInScriptMap(base.DataObject.Server.Name, this.scriptMapPhysicalPath)) { using (IsapiExtensionList isapiExtensionList = new IsapiExtensionList(base.DataObject.Server.Name)) { isapiExtensionList.RemoveByExecutable(this.scriptMapPhysicalPath); isapiExtensionList.CommitChanges(); IisUtility.CommitMetabaseChanges((base.DataObject.Server == null) ? null : base.DataObject.Server.Name); } } TaskLogger.LogExit(); }
internal static void SetWebSvcExtRestrictionList(string metabaseServerName) { using (IsapiExtensionList isapiExtensionList = new IsapiExtensionList(metabaseServerName)) { string groupID = "MSEXCHANGE"; string description = "Microsoft Exchange Server"; string physicalPath; if (RoleManager.GetRoleByName("MailboxRole").IsInstalled || RoleManager.GetRoleByName("MailboxRole").IsPartiallyInstalled) { physicalPath = Path.Combine(ConfigurationContext.Setup.BinPath, "davex.dll"); } else { physicalPath = Path.Combine(ConfigurationContext.Setup.BinPath, "exprox.dll"); } isapiExtensionList.Add(true, physicalPath, false, groupID, description); isapiExtensionList.CommitChanges(); } }