/// <summary> /// Creates a symbol request. /// </summary> public async Task <Request> CreateAsync(CancellationToken token) { if (!m_config.DomainId.HasValue) { m_logger.Verbose("DomainId is not specified. Creating symbol publishing request using DefaultDomainId."); } IDomainId domainId = m_config.DomainId.HasValue ? new ByteDomainId(m_config.DomainId.Value) : WellKnownDomainIds.DefaultDomainId; Request result; using (m_counters.StartStopwatch(SymbolClientCounter.CreateDuration)) { result = await m_symbolClient.CreateRequestAsync(domainId, RequestName, m_config.EnableChunkDedup, token); } m_requestId = result.Id; m_domainId = result.DomainId; // info about a request in a human-readable form var requestDetails = $"Symbol request has been created:{Environment.NewLine}" + $"ID: {result.Id}{Environment.NewLine}" + $"Name: {result.Name}{Environment.NewLine}" + $"Content list: '{result.Url}/DebugEntries'"; // Send the message to the main log. Analysis.IgnoreResult(await m_apiClient.LogMessage(requestDetails)); m_logger.Verbose(requestDetails); return(result); }
/// <summary> /// Creates a symbol request. /// </summary> public async Task <Request> CreateAsync(CancellationToken token) { var result = await m_symbolClient.CreateRequestAsync(RequestName, token); m_requestId = result.Id; return(result); }
/// <summary> /// Creates a symbol request. /// </summary> public async Task <Request> CreateAsync(CancellationToken token) { var result = await m_symbolClient.CreateRequestAsync(RequestName, token); m_requestId = result.Id; // info about a request in a human-readable form var requestDetails = $"Symbol request has been created:{Environment.NewLine}" + $"ID: {result.Id}{Environment.NewLine}" + $"Name: {result.Name}{Environment.NewLine}" + $"Content list: '{result.Url}/DebugEntries'"; // Send the message to the main log. Analysis.IgnoreResult(await m_apiClient.LogMessage(requestDetails)); m_logger.Verbose(requestDetails); return(result); }