Skip to content

Commit d4d5923

Browse files
committed
update
1 parent ef66d68 commit d4d5923

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/Common/AzurePSCmdlet.cs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ private void FlushDebugMessages(bool record = false)
379379
}
380380
}
381381

382+
protected abstract void InitializeQosEvent();
383+
382384
private void RecordDebugMessages()
383385
{
384386
// Create 'ErrorRecords' folder under profile directory, if not exists
@@ -416,25 +418,6 @@ private void RecordDebugMessages()
416418
AzureSession.DataStore.WriteFile(filePath, sb.ToString());
417419
}
418420

419-
protected void InitializeQosEvent()
420-
{
421-
QosEvent = new AzurePSQoSEvent()
422-
{
423-
CmdletType = this.GetType().Name,
424-
IsSuccess = true,
425-
};
426-
427-
if (this.Profile != null && this.Profile.DefaultSubscription != null)
428-
{
429-
QosEvent.Uid = MetricHelper.GenerateSha256HashString(
430-
this.Profile.DefaultSubscription.Id.ToString());
431-
}
432-
else
433-
{
434-
QosEvent.Uid = "defaultid";
435-
}
436-
}
437-
438421
/// <summary>
439422
/// Invoke this method when the cmdlet is completed or terminated.
440423
/// </summary>

0 commit comments

Comments
 (0)