CreateDomain() public method

public CreateDomain ( GlymaSessionConfiguration configuration, string name ) : MapResponse
configuration TransactionalNodeService.Common.GlymaSessionConfiguration
name string
return TransactionalNodeService.Common.MapResponse
 public MapResponse CreateDomain(string callingUrl, string name)
 {
     using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
     {
         return nodeServiceClient.CreateDomain(callingUrl, name);
     }
 }
示例#2
0
 public MapResponse CreateDomain(string callingUrl, string name)
 {
     using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
     {
         return(nodeServiceClient.CreateDomain(callingUrl, name));
     }
 }
        public MapResponse CreateDomain(string callingUrl, string name)
        {
            using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
            {
                using (WebAppSPGlymaSession glymaSession = new WebAppSPGlymaSession(callingUrl, null, null, SPGlymaRightFactory.Instance.ProjectCreateRight))
                {
                    GlymaSessionConfiguration configuration = glymaSession.ExportGlymaSession();

                    return(nodeServiceClient.CreateDomain(configuration, name));
                }
            }
        }
        public MapResponse CreateDomain(string callingUrl, string name)
        {
            using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl))
            {
                using (WebAppSPGlymaSession glymaSession = new WebAppSPGlymaSession(callingUrl, null, null, SPGlymaRightFactory.Instance.ProjectCreateRight))
                {
                    GlymaSessionConfiguration configuration = glymaSession.ExportGlymaSession();

                    return nodeServiceClient.CreateDomain(configuration, name);
                }
            }
        }