public override void Initialize(IHostContext hostContext) { ArgUtil.NotNull(hostContext, nameof(hostContext)); base.Initialize(hostContext); _totalLines = 0; _pageId = Guid.NewGuid().ToString(); _pagesFolder = Path.Combine(hostContext.GetDiagDirectory(), PagingFolder); _jobServerQueue = HostContext.GetService <IJobServerQueue>(); Directory.CreateDirectory(_pagesFolder); }
public override void Initialize(IHostContext hostContext) { base.Initialize(hostContext); _disableLogUploads = HostContext.GetService <IConfigurationStore>().GetSettings().DisableLogUploads; if (_disableLogUploads) { _buildLogsFolderPath = Path.Combine(hostContext.GetDiagDirectory(), _buildLogsFolderName); Directory.CreateDirectory(_buildLogsFolderPath); } _jobServerQueue = HostContext.GetService <IJobServerQueue>(); }