DeleteRootMap() public method

public DeleteRootMap ( GlymaSessionConfiguration configuration, System.Guid domainId, System.Guid rootMapId ) : int
configuration TransactionalNodeService.Common.GlymaSessionConfiguration
domainId System.Guid
rootMapId System.Guid
return int
        public int DeleteRootMap(string callingUrl, Guid domainId, Guid rootMapId)
        {
            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.DeleteRootMap(configuration, domainId, rootMapId));
                }
            }
        }
        public int DeleteRootMap(string callingUrl, Guid domainId, Guid rootMapId)
        {
            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.DeleteRootMap(configuration, domainId, rootMapId);
                }
            }
        }