TransactionalNodeService.TransactionalMappingToolService.DeleteDomain C# (CSharp) Method

DeleteDomain() public method

public DeleteDomain ( string callingUrl, System.Guid domainId ) : int
callingUrl string
domainId System.Guid
return int
        public int DeleteDomain(string callingUrl, Guid domainId)
        {
            using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
            {
                using (WebAppSPGlymaSession glymaSession = new WebAppSPGlymaSession(callingUrl, domainId, null, SPGlymaRightFactory.Instance.RootMapCreateRight))
                {
                    GlymaSessionConfiguration configuration = glymaSession.ExportGlymaSession();

                    return nodeServiceClient.DeleteDomain(configuration, domainId);
                }
            }
        }