Ejemplo n.º 1
0
        public IsolatedJob(Type jobType)
        {
            this.JobType = jobType ?? throw new ArgumentNullException("jobType");

            var path = Path.GetDirectoryName(this.JobType.Assembly.Location);

            this.IDL = new IsolateDomainLoader(path, $"{this.JobType.Assembly.GetName().Name}.dll.config");
            this.Obj = this.IDL.GetObject(this.JobType.Assembly.Location, this.JobType.FullName);
        }
Ejemplo n.º 2
0
        public IsolatedJob(Type jobType)
        {
            if (jobType == null)
            {
                throw new ArgumentNullException("jobType");
            }
            this.JobType = jobType;

            var path = Path.GetDirectoryName(this.JobType.Assembly.Location);

            this.IDL = new IsolateDomainLoader(path, string.Format("{0}.dll.config", this.JobType.Assembly.GetName().Name));
            this.Obj = this.IDL.GetObject(this.JobType.Assembly.Location, this.JobType.FullName);
        }