Skip to content

Commit 32e8ae3

Browse files
Mark cloud context internal (#3090)
1 parent 80587d6 commit 32e8ae3

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

.publicApi/Microsoft.ApplicationInsights.dll/Stable/PublicAPI.Unshipped.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ Microsoft.ApplicationInsights.DataContracts.SeverityLevel.Warning = 2 -> Microso
113113
Microsoft.ApplicationInsights.DataContracts.StackFrame
114114
Microsoft.ApplicationInsights.DataContracts.StackFrame.StackFrame(string assembly, string fileName, int level, int line, string method) -> void
115115
Microsoft.ApplicationInsights.DataContracts.TelemetryContext
116-
Microsoft.ApplicationInsights.DataContracts.TelemetryContext.Cloud.get -> Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext
117116
Microsoft.ApplicationInsights.DataContracts.TelemetryContext.GlobalProperties.get -> System.Collections.Generic.IDictionary<string, string>
118117
Microsoft.ApplicationInsights.DataContracts.TelemetryContext.Location.get -> Microsoft.ApplicationInsights.Extensibility.Implementation.LocationContext
119118
Microsoft.ApplicationInsights.DataContracts.TelemetryContext.Operation.get -> Microsoft.ApplicationInsights.Extensibility.Implementation.OperationContext
@@ -133,11 +132,6 @@ Microsoft.ApplicationInsights.DataContracts.TraceTelemetry.Timestamp.set -> void
133132
Microsoft.ApplicationInsights.DataContracts.TraceTelemetry.TraceTelemetry() -> void
134133
Microsoft.ApplicationInsights.DataContracts.TraceTelemetry.TraceTelemetry(string message) -> void
135134
Microsoft.ApplicationInsights.DataContracts.TraceTelemetry.TraceTelemetry(string message, Microsoft.ApplicationInsights.DataContracts.SeverityLevel severityLevel) -> void
136-
Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext
137-
Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext.RoleInstance.get -> string
138-
Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext.RoleInstance.set -> void
139-
Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext.RoleName.get -> string
140-
Microsoft.ApplicationInsights.Extensibility.Implementation.CloudContext.RoleName.set -> void
141135
Microsoft.ApplicationInsights.Extensibility.Implementation.LocationContext
142136
Microsoft.ApplicationInsights.Extensibility.Implementation.LocationContext.Ip.get -> string
143137
Microsoft.ApplicationInsights.Extensibility.Implementation.LocationContext.Ip.set -> void

BASE/src/Microsoft.ApplicationInsights/DataContracts/TelemetryContext.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ public IDictionary<string, string> GlobalProperties
5151
get { return LazyInitializer.EnsureInitialized(ref this.GlobalPropertiesValue, () => new ConcurrentDictionary<string, string>()); }
5252
}
5353

54-
/// <summary>
55-
/// Gets the object describing the cloud tracked by this <see cref="TelemetryContext"/>.
56-
/// </summary>
57-
public CloudContext Cloud
58-
{
59-
get { return LazyInitializer.EnsureInitialized(ref this.cloud, () => new CloudContext()); }
60-
}
61-
6254
/// <summary>
6355
/// Gets the object describing a user tracked by this <see cref="TelemetryContext"/>.
6456
/// </summary>
@@ -84,6 +76,14 @@ public LocationContext Location
8476
get { return LazyInitializer.EnsureInitialized(ref this.location, () => new LocationContext()); }
8577
}
8678

79+
/// <summary>
80+
/// Gets the object describing the cloud tracked by this <see cref="TelemetryContext"/>.
81+
/// </summary>
82+
internal CloudContext Cloud
83+
{
84+
get { return LazyInitializer.EnsureInitialized(ref this.cloud, () => new CloudContext()); }
85+
}
86+
8787
/// <summary>
8888
/// Gets the object describing the component tracked by this <see cref="TelemetryContext"/>.
8989
/// </summary>

BASE/src/Microsoft.ApplicationInsights/Extensibility/Implementation/CloudContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// Encapsulates information about a cloud where an application is running.
55
/// </summary>
6-
public sealed class CloudContext
6+
internal sealed class CloudContext
77
{
88
private string roleName;
99
private string roleInstance;

0 commit comments

Comments
 (0)