Skip to content

Commit fdbc302

Browse files
authored
Fix comments in code to generate good XML file (#18072)
1 parent 1ed6933 commit fdbc302

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/Accounts/Accounts/Common/ScopeHelpers.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ public static ContextModificationScope GetContextModificationScopeForProcess(Deb
6161
}
6262

6363
/// <summary>
64-
/// Get the context modification scope for the current user. This will be 'Process' if changes should
65-
/// only affect the current PowerShell session, or 'CurrentUser' if any changes should be global.
64+
/// Get the context modification scope for the current user. This will be 'Process' if changes should
65+
/// only affect the current PowerShell session, or 'CurrentUser' if any changes should be global.
6666
/// </summary>
67+
/// <param name="session"> The PowerShell session to be affected</param>
6768
/// <param name="writer">A writer to write debug messages</param>
68-
/// <returns>'Process' if all changes should only impact the current session, or 'CurrentUser' if
69+
/// <returns>'Process' if all changes should only impact the current session, or 'CurrentUser' if
6970
/// changes should be global.</returns>
7071
public static ContextModificationScope GetContextModificationScopeForUser(IAzureSession session, DebugWriter writer)
7172
{

src/Accounts/Accounts/CommonModule/TelemetryProvider.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@ public static TelemetryProvider Create(bool collect, IEventStore store)
102102
}
103103

104104
/// <summary>
105-
/// Log a telemtry event
105+
/// Log a telemetry event
106106
/// </summary>
107-
/// <param name="qosEvent">The event to log</param>
108-
public virtual void LogEvent(string key)
107+
/// <param name="qosEventKey">The event to log</param>
108+
public virtual void LogEvent(string qosEventKey)
109109
{
110110
var dataCollection = _dataCollectionProfile.EnableAzureDataCollection;
111111
var enabled = dataCollection.HasValue ? dataCollection.Value : true;
112112

113-
AzurePSQoSEvent qos;
114-
if (this.TryGetValue(key, out qos))
113+
AzurePSQoSEvent qosEvent;
114+
if (this.TryGetValue(qosEventKey, out qosEvent))
115115
{
116-
qos.FinishQosEvent();
117-
_helper.LogQoSEvent(qos, enabled, enabled);
116+
qosEvent.FinishQosEvent();
117+
_helper.LogQoSEvent(qosEvent, enabled, enabled);
118118
_helper.FlushMetric();
119-
this.Remove(key);
119+
this.Remove(qosEventKey);
120120
}
121121
}
122122

0 commit comments

Comments
 (0)