예제 #1
0
        public static DomainOperator Create(AssemblyDomain domain)
        {
            var result = new DomainOperator();

            result._domain = domain;
            return(result);
        }
예제 #2
0
        public static DomainOperator Create(string domainName)
        {
            var result = new DomainOperator();

            result._domain = DomainManagment.Create(domainName);
            return(result);
        }
예제 #3
0
        public static DomainOperator Create(AssemblyDomain domain, ComplierResultTarget target, ComplierResultError error = ComplierResultError.None)
        {
            DomainOperator instance = new DomainOperator();

            instance.Complier.EnumCRError  = error;
            instance.Complier.EnumCRTarget = target;
            instance.Complier.Domain       = domain;
            return(instance);
        }
예제 #4
0
        public static DomainOperator Random(bool complieInFile = false)
        {
            DomainOperator instance = new DomainOperator
            {
                _complieInFile = complieInFile,
                _domain        = DomainManagment.Random
            };

            return(instance);
        }
예제 #5
0
        public static DomainOperator Create(AssemblyDomain domain, bool complieInFile = false)
        {
            DomainOperator instance = new DomainOperator
            {
                _complieInFile = complieInFile,
                _domain        = domain
            };

            return(instance);
        }
예제 #6
0
        public static DomainOperator Create(string domainName = default, bool complieInFile = false)
        {
            DomainOperator instance = new DomainOperator
            {
                _complieInFile = complieInFile
            };


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

            return(instance);
        }