Exemplo n.º 1
0
        internal async Task OnProcessRecordAsyncStart(string id, CancellationToken cancellationToken, GetEventData getEventData, SignalDelegate signal, string processRecordId, InvocationInfo invocationInfo, string parameterSetName, string correlationId)
        {
            //AzVersion is null indicates no SDK based cmdlet is invoked. Below properties needs to be filled.
            if (_runtime != null && AzurePSCmdlet.AzVersion == null)
            {
                AzurePSCmdlet.PSHostName    = _runtime.Host?.Name;
                AzurePSCmdlet.PSHostVersion = _runtime.Host?.Version?.ToString();
            }
            var qos = _telemetry.CreateQosEvent(invocationInfo, parameterSetName, correlationId, correlationId);

            qos.PreviousEndTime = _previousEndTime;
            await signal(Events.Debug, cancellationToken,
                         () => EventHelper.CreateLogEvent($"[{id}]: Created new QosEvent for command '{qos?.CommandName}'"));
        }
Exemplo n.º 2
0
        internal async Task OnProcessRecordAsyncStart(string id, CancellationToken cancellationToken, GetEventData getEventData, SignalDelegate signal, string processRecordId, InvocationInfo invocationInfo, string parameterSetName, string correlationId)
        {
            var qos = _telemetry.CreateQosEvent(invocationInfo, parameterSetName, correlationId, processRecordId);

            await signal(Events.Debug, cancellationToken,
                         () => EventHelper.CreateLogEvent($"[{id}]: Created new QosEvent for command '{qos?.CommandName}': {qos?.ToString()}"));
        }