protected virtual void DeleteFromMetabase() { T dataObject = base.DataObject; int num = dataObject.MetabasePath.LastIndexOf('/'); T dataObject2 = base.DataObject; string webSiteRoot = dataObject2.MetabasePath.Substring(0, num); T dataObject3 = base.DataObject; string virtualDirectoryName = dataObject3.MetabasePath.Substring(num + 1); DeleteVirtualDirectory.DeleteFromMetabase(webSiteRoot, virtualDirectoryName, this.ChildVirtualDirectoryNames); }
protected override void DeleteFromMetabase() { if (string.IsNullOrEmpty(base.DataObject.MetabasePath)) { string webSiteRoot = IisUtility.CreateAbsolutePath(IisUtility.AbsolutePathType.WebSiteRoot, this.Identity.Server, IisUtility.FindWebSiteRootPath(this.Identity.Name, this.Identity.Server), null); string virtualDirectoryName = "Microsoft-Server-ActiveSync"; DeleteVirtualDirectory.DeleteFromMetabase(webSiteRoot, virtualDirectoryName, this.ChildVirtualDirectoryNames); return; } base.DeleteFromMetabase(); }
protected virtual void DeleteFromMetabase() { T dataObject = this.DataObject; string webSiteRoot = IisUtility.GetWebSiteRoot(dataObject.MetabasePath); ICollection childVirtualDirectoryNames = null; ListDictionary childVirtualDirectories = this.ChildVirtualDirectories; if (childVirtualDirectories != null) { childVirtualDirectoryNames = childVirtualDirectories.Keys; } DeleteVirtualDirectory.DeleteFromMetabase(webSiteRoot, base.Name, childVirtualDirectoryNames); }