static ExperienceExtractorWebApiConfig() { JobApiRoute = "api/jobs"; AllowedRoles = new List<string>(); AllowedUsers = new List<string>(); RoutePrefix = typeof(ExperienceExtractorWebApiConfig).Assembly.FullName; XdbConnectionString = "ExperienceExtractor"; JobExecutionSettings = new JobExecutionSettings { TempDirectory = HostingEnvironment.MapPath("~/App_Data/Export"), FieldCacheSize = 5000, DatabaseName = "master", BatchSize = 50000, LoadThreads = 2, ProcessingThreads = 2, DataSourceBufferSize = 500, SizeLimit = 2 * 1024 * 1024 * 1024L }; MaxJobHistoryLength = 100; }
public Job(IJobSpecification specification, JobExecutionSettings settings, Guid?id = null, int statusUpdateFrequency = 1000) { Id = id ?? Guid.NewGuid(); Created = DateTime.Now; Status = JobStatus.Pending; Specification = specification; StatusUpdateFrequency = statusUpdateFrequency; ExecutionSettings = settings; TempDirectory = Path.Combine(settings.TempDirectory, Id.ToString("N")); }
public Job(IJobSpecification specification, JobExecutionSettings settings, Guid? id = null, int statusUpdateFrequency = 1000) { Id = id ?? Guid.NewGuid(); Created = DateTime.Now; Status = JobStatus.Pending; Specification = specification; StatusUpdateFrequency = statusUpdateFrequency; ExecutionSettings = settings; TempDirectory = Path.Combine(settings.TempDirectory, Id.ToString("N")); }
public LocalJobRepository(JobExecutionSettings settings) { JobExecutionSettings = settings; MaxJobHistoryLength = ExperienceExtractorWebApiConfig.MaxJobHistoryLength; }