You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix links in remarks
* fix more links in remarks
* review on staging
* fix warning and review on staging
* Apply suggestions from Scott
Co-Authored-By: Scott Addie <[email protected]>
Copy file name to clipboardExpand all lines: xml/System.Composition.Hosting.Core/ExportDescriptorProvider.xml
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -49,11 +49,11 @@ Instances of this class are not required to be safe for concurrent access by mul
49
49
<Docs>
50
50
<summary>Initializes a new instance of the <seecref="T:System.Composition.Hosting.Core.ExportDescriptorProvider" /> class.</summary>
51
51
<remarks>
52
-
<formattype="text/markdown"><![CDATA[
53
-
54
-
## Remarks
55
-
This is a protected constructor that can only be called from derived classes.
56
-
52
+
<formattype="text/markdown"><![CDATA[
53
+
54
+
## Remarks
55
+
This is a protected constructor that can only be called from derived classes.
56
+
57
57
]]></format>
58
58
</remarks>
59
59
</Docs>
@@ -87,11 +87,12 @@ Instances of this class are not required to be safe for concurrent access by mul
87
87
<summary>Retrieves promise export descriptors for the specified export key.</summary>
88
88
<returns>A collection of promises for new export descriptors.</returns>
89
89
<remarks>
90
-
<formattype="text/markdown"><![CDATA[
91
-
92
-
## Remarks
93
-
A provider will only be queried once for each unique export key. The descriptor accessor can only be queried immediately if the descriptor being promised is an adapter, such as <see cref="Lazy{T}"/>; otherwise, dependencies should only be queried within execution of the function provided to the <xref:System.Composition.Hosting.Core.ExportDescriptorPromise>. The actual descriptors provided by this method, must not close over or reference any aspect of the dependency/promise structure, as this would prevent the structure from being garbage collected.
94
-
90
+
<formattype="text/markdown"><![CDATA[
91
+
92
+
## Remarks
93
+
94
+
A provider is only queried once for each unique export key. The descriptor accessor can only be queried immediately if the descriptor being promised is an adapter, such as <xref:System.Lazy%601>. Otherwise, dependencies should only be queried within execution of the function provided to the <xref:System.Composition.Hosting.Core.ExportDescriptorPromise>. The actual descriptors provided by this method must not close over or reference any aspect of the dependency/promise structure, as this would prevent the structure from being garbage collected.
Copy file name to clipboardExpand all lines: xml/System.Diagnostics/Activity.xml
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ No `Activity` methods allow exceptions to escape as a response to bad inputs. Th
61
61
<paramname="operationName">The name of the operation.</param>
62
62
<summary>Initializes a new instance of the <seecref="T:System.Diagnostics.Activity" /> class.</summary>
63
63
<remarks>
64
-
<formattype="text/markdown"><![CDATA[
64
+
<formattype="text/markdown"><![CDATA[
65
65
66
66
## Remarks
67
67
@@ -123,11 +123,11 @@ Note that <xref:System.Diagnostics.Activity> has a "builder" pattern: you call t
123
123
<returns>
124
124
<seelangword="this" /> for convenient chaining.</returns>
125
125
<remarks>
126
-
<formattype="text/markdown"><![CDATA[
126
+
<formattype="text/markdown"><![CDATA[
127
127
128
128
## Remarks
129
129
130
-
This key/value pair is included in the collection returned by the <see cref="P:System.Diagnostics.Activity.Baggage" /> property, and can also be retrieved by the <xref:System.Diagnostics.Activity.GetBaggageItem%2A> method.
130
+
This key/value pair is included in the collection returned by the <xref:System.Diagnostics.Activity.Baggage> property, and can also be retrieved by the <xref:System.Diagnostics.Activity.GetBaggageItem%2A> method.
131
131
132
132
`Baggage` is meant for information that is needed for runtime control. For information that is useful to show up in the log with the <xref:System.Diagnostics.Activity>, use the <xref:System.Diagnostics.Activity.Tags> property.
133
133
@@ -169,9 +169,9 @@ This key/value pair is included in the collection returned by the <see cref="P:S
169
169
170
170
## Remarks
171
171
172
-
This key/value pair is included in the collection returned by the <see cref="P:System.Diagnostics.Activity.Tags" /> property.
172
+
This key/value pair is included in the collection returned by the <xref:System.Diagnostics.Activity.Tags> property.
173
173
174
-
<xref:System.Diagnostics.Activity.Tags> is meant for information that is useful to log with the <xref:System.Diagnostics.Activity>. For information that is needed for runtime control, use the <xref:System.Diagnostics.Activity.Baggage> property.
174
+
<xref:System.Diagnostics.Activity.Tags> is meant for information that is useful to log with the <xref:System.Diagnostics.Activity>. For information that's needed for runtime control, use the <xref:System.Diagnostics.Activity.Baggage> property.
175
175
176
176
]]></format>
177
177
</remarks>
@@ -200,7 +200,7 @@ This key/value pair is included in the collection returned by the <see cref="P:S
200
200
<summary>Gets a collection of key/value pairs that represents information that is passed to children of this <seecref="T:System.Diagnostics.Activity" />.</summary>
201
201
<value>An enumeration of string-string key-value pairs.</value>
202
202
<remarks>
203
-
<formattype="text/markdown">< for more details.
495
+
This property value can be `null` if this is a root <xref:System.Diagnostics.Activity> (that is, it has no <xref:System.Diagnostics.Activity.Parent>). For more information, see [ID format](href="https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md#id-format").
496
496
497
497
]]></format>
498
498
</remarks>
@@ -518,7 +518,7 @@ This property value can be `null` if this is a root <see cref="T:System.Diagnost
518
518
<summary>Gets the parent's <seecref="P:System.Diagnostics.Activity.SpanId" />.</summary>
If the <xref:System.Diagnostics.Activity.ParentId?displayProperty=nameWithType> is in the W3C format, this property returns the <xref:System.Diagnostics.Activity.SpanId> part of the ParentId. Otherwise it returns a zero <xref:System.Diagnostics.Activity.SpanId>.
524
524
@@ -572,7 +572,7 @@ If the <xref:System.Diagnostics.Activity.ParentId?displayProperty=nameWithType>
572
572
<summary>Gets the root ID of this <seecref="T:System.Diagnostics.Activity" />.</summary>
573
573
<value>The root ID, or <seelangword="null" /> if the current instance has either a <seecref="P:System.Diagnostics.Activity.ParentId" /> or an <seecref="P:System.Diagnostics.Activity.Id" />.</value>
574
574
<remarks>
575
-
<formattype="text/markdown"><![CDATA[
575
+
<formattype="text/markdown"><![CDATA[
576
576
577
577
## Remarks
578
578
@@ -637,7 +637,7 @@ The root ID is a substring from the <xref:System.Diagnostics.Activity.Id> or the
637
637
<returns>
638
638
<seelangword="this" /> for convenient chaining.</returns>
639
639
<remarks>
640
-
<formattype="text/markdown"><![CDATA[
640
+
<formattype="text/markdown"><![CDATA[
641
641
642
642
## Remarks
643
643
@@ -675,11 +675,11 @@ The specified format will take precedence over `Parent.IdFormat`, the <xref:Syst
675
675
<returns>
676
676
<seelangword="this" /> for convenient chaining.</returns>
677
677
<remarks>
678
-
<formattype="text/markdown"><![CDATA[
678
+
<formattype="text/markdown"><![CDATA[
679
679
680
680
## Remarks
681
681
682
-
This property should only be used in 'boundary' scenarios where an <see cref="T:System.Diagnostics.Activity" /> from another process logically started this <see cref="T:System.Diagnostics.Activity" />. The `parentId` brings up the <xref:System.Diagnostics.Activity.Tags> (as well as the <xref:System.Diagnostics.Activity.ParentId> property) and can be used to reconstruct the causal tree.
682
+
This property should only be used in 'boundary' scenarios where an <xref:System.Diagnostics.Activity> from another process logically started this <xref:System.Diagnostics.Activity>. The `parentId` brings up the <xref:System.Diagnostics.Activity.Tags> (as well as the <xref:System.Diagnostics.Activity.ParentId> property) and can be used to reconstruct the causal tree.
683
683
684
684
]]></format>
685
685
</remarks>
@@ -712,7 +712,7 @@ This property should only be used in 'boundary' scenarios where an <see cref="T:
712
712
<returns>
713
713
<seelangword="this" /> for convenient chaining.</returns>
714
714
<remarks>
715
-
<formattype="text/markdown"><![CDATA[
715
+
<formattype="text/markdown"><![CDATA[
716
716
717
717
## Remarks
718
718
@@ -799,7 +799,7 @@ This method has the advantage that no string manipulation is needed to set the I
799
799
<returns>
800
800
<seelangword="this" /> for convenient chaining.</returns>
801
801
<remarks>
802
-
<formattype="text/markdown"><![CDATA[
802
+
<formattype="text/markdown"><![CDATA[
803
803
804
804
## Remarks
805
805
@@ -838,7 +838,7 @@ Use <xref:System.Diagnostics.DiagnosticSource.StartActivity%2A?displayProperty=n
838
838
<summary>Gets the time when the operation started.</summary>
839
839
<value>The UTC time that the operation started.</value>
The `tracestate` header is intended to carry supplemental information to trace identity contained in the trace parent. `tracestate` consists of a list of key/value pairs that convey information about the request position in multiple distributed tracing graphs. This information is typically used by distributed tracing systems and should not be used for general purpose baggage, since this may break the correlation of a distributed trace.
960
-
960
+
961
961
Logically `TraceStateString` is just a kind of baggage (if flows just like baggage), but because it is expected to be special-cased (it has its own HTTP header), it is more convenient/efficient if it is not lumped in with other baggage.
Copy file name to clipboardExpand all lines: xml/System.Reflection/MetadataLoadContext.xml
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
<Docs>
22
22
<summary>Represents a closed universe of Type objects loaded for inspection-only purposes. Each MetadataLoadContext can have its own binding rules and is isolated from all other MetadataLoadContexts.</summary>
23
23
<remarks>
24
-
<formattype="text/markdown"><![CDATA[
24
+
<formattype="text/markdown"><![CDATA[
25
25
26
26
## Remarks
27
27
@@ -81,18 +81,18 @@ Assemblies are treated strictly as metadata. There are no restrictions on loadin
81
81
## Remarks
82
82
83
83
The core assembly is treated differently than other assemblies because references to these well-known types do not include the assembly reference, unlike normal types.
84
-
84
+
85
85
Typically, this assembly is named "mscorlib" or "netstandard". If the core assembly cannot be found, the value will be `null`, and many other reflection methods, including those that parse method signatures, will throw an exception.
86
-
86
+
87
87
The `CoreAssembly` is determined by passing the `coreAssemblyName` parameter passed to the <xref:System.Reflection.MetadataAssemblyResolver> constructor
88
88
to the <xref:System.Reflection.MetadataAssemblyResolver.Resolve%2A?displayProperty=nameWithType> method.
89
89
90
90
If no `coreAssemblyName` argument was specified in the constructor of <xref:System.Reflection.MetadataLoadContext>, then default values are used, including "mscorlib", "System.Runtime" and "netstandard".
91
-
91
+
92
92
The designated core assembly does not need to contain the core types directly. It can type forward them to other assemblies. Thus, it is perfectly permissible to use the mscorlib facade as the designated core assembly.
93
-
93
+
94
94
Note that <xref:System.Runtime> is not an ideal core assembly because it excludes some of the interop-related pseudo-custom attribute types such as <xref:System.Runtime.InteropServices.DllImportAttribute>. However, it can serve if you have no interest in those attributes. The CustomAttributes API will skip those attributes if the core assembly does not include the necessary types.
95
-
95
+
96
96
The core assembly is not loaded until necessary. The following APIs do not trigger the search for the core assembly:
If a core assembly cannot be found or if the core assembly is missing types, this will affect the behavior of the <xref:System.Reflection.MetadataLoadContext> as follows:
114
-
114
+
115
115
* APIs that need to parse signatures or typespecs and return the results as <xref:System.Type> objects will throw an exception. For example:
* APIs that need to compare types to well-known core types will not throw an exception, and the comparison will evaluate to `false`. For example, if you do not specify a core assembly, <xref:System.Type.IsPrimitive> will return `false` for everything, even types named <xref:System.Int32>. Similarly, <xref:System.Type.GetTypeCode%2A?displayProperty=nameWithType> will return <xref:System.TypeCode.Object> for everything.
123
-
123
+
124
124
* If a metadata entity sets flags that surface as a pseudo-custom attribute, and the core assembly does not contain the pseudo-custom attribute type, the necessary constructor or any of the parameter types of the constructor, the <xref:System.Reflection.MetadataLoadContext> will not throw. It will omit the pseudo-custom attribute from the list of returned attributes.
125
125
]]></format>
126
126
</remarks>
@@ -149,7 +149,7 @@ If a core assembly cannot be found or if the core assembly is missing types, thi
149
149
<Docs>
150
150
<summary>Releases any native resources (such as file locks on assembly files). </summary>
151
151
<remarks>
152
-
<formattype="text/markdown"><![CDATA[
152
+
<formattype="text/markdown"><![CDATA[
153
153
154
154
After disposal, it is not safe to use any <xref:System.Reflection.Assembly> objects dispensed by the <xref:System.Reflection.MetadataLoadContext> or any reflection objects dispensed by those <xref:System.Reflection.Assembly> objects.
155
155
@@ -208,7 +208,8 @@ Some APIs may return fixed or previously cached data. Accessing objects *during*
208
208
<remarks>
209
209
<formattype="text/markdown"><![CDATA[
210
210
## Remarks
211
-
Note that the behavior of this method matches the behavior of the <xref:System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName%2A?displayProperty=nameWithType> resolve event but does not match the behavior of <xref:System.Reflection.Assembly.ReflectionOnlyLoad%2A?displayProperty=nameWithType>. (The latter gives up without raising its resolve event.)
211
+
212
+
Note that the behavior of this method matches the behavior of the <xref:System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName%2A?displayProperty=nameWithType> resolve event, but does not match the behavior of <xref:System.Reflection.Assembly.ReflectionOnlyLoad%2A?displayProperty=nameWithType>. (The latter gives up without raising its resolve event.)
0 commit comments