示例#1
0
        public static NDomain Create(AssemblyDomain domain, bool complieInFile = false)
        {
            NDomain instance = new NDomain
            {
                _complieInFile = complieInFile,
                _domain        = domain
            };

            return(instance);
        }
示例#2
0
        public static NDomain Random(bool complieInFile = false)
        {
            NDomain instance = new NDomain
            {
                _complieInFile = complieInFile,
                _domain        = DomainManagment.Random
            };

            return(instance);
        }
示例#3
0
文件: NDomain.cs 项目: fucora/Natasha
        public static NDomain Create(AssemblyDomain domain, ComplierResultTarget target = ComplierResultTarget.Stream, ComplierResultError error = ComplierResultError.None)
        {
            NDomain instance = new NDomain
            {
                _target = target,
                _error  = error,
                _domain = domain
            };

            return(instance);
        }
示例#4
0
文件: NDomain.cs 项目: pangfd/Natasha
        public static NDomain Create(string name = default)
        {
            NDomain domain = new NDomain();

            if (name == default)
            {
                domain._domain = DomainManagment.Create("N" + Guid.NewGuid().ToString("N"));
            }
            else
            {
                domain._domain = DomainManagment.Create(name);
            }

            return(domain);
        }
示例#5
0
        public static NDomain Create(string domainName = default, bool complieInFile = false)
        {
            NDomain instance = new NDomain
            {
                _complieInFile = complieInFile
            };


            if (domainName == default)
            {
                instance._domain = DomainManagment.Default;
            }
            else
            {
                instance._domain = DomainManagment.Create(domainName);
            }

            return(instance);
        }