1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <doc >
3
+ <assembly >
4
+ <name >Microsoft.Extensions.AsyncState</name >
5
+ </assembly >
6
+ <members >
7
+ <member name =" T:Microsoft.Extensions.AsyncState.AsyncStateExtensions" >
8
+ <summary >
9
+ Extension methods to manipulate async state.</summary >
10
+ </member >
11
+ <member name =" M:Microsoft.Extensions.AsyncState.AsyncStateExtensions.AddAsyncStateCore(Microsoft.Extensions.DependencyInjection.IServiceCollection)" >
12
+ <summary >
13
+ Adds default implementations for <see cref =" T:Microsoft.Extensions.AsyncState.IAsyncState" />, <see cref =" T:Microsoft.Extensions.AsyncState.IAsyncContext`1" />, and <see cref =" T:Microsoft.Extensions.AsyncState.IAsyncLocalContext`1" /> services.</summary >
14
+ <param name =" services" >The dependency injection container to add the implementations to.</param >
15
+ <exception cref =" T:System.ArgumentNullException" >
16
+ <paramref name =" services" /> is <see langword =" null" />.</exception >
17
+ <returns >The value of <paramref name =" services" />.</returns >
18
+ </member >
19
+ <member name =" T:Microsoft.Extensions.AsyncState.AsyncStateToken" >
20
+ <summary >
21
+ Async state token representing a registered context within the asynchronous state.</summary >
22
+ </member >
23
+ <member name =" M:Microsoft.Extensions.AsyncState.AsyncStateToken.Equals(Microsoft.Extensions.AsyncState.AsyncStateToken)" >
24
+ <summary >
25
+ Determines whether this async state token and a specified async state token are identical.</summary >
26
+ <param name =" other" >The other async state token.</param >
27
+ <returns >
28
+ <see langword =" true" /> if the two async state tokens are identical; otherwise, <see langword =" false" />.</returns >
29
+ </member >
30
+ <member name =" M:Microsoft.Extensions.AsyncState.AsyncStateToken.Equals(System.Object)" >
31
+ <summary >
32
+ Determines whether the specified object is equal to the current async state token.</summary >
33
+ <param name =" obj" >The object to compare.</param >
34
+ <returns >
35
+ <see langword =" true" /> if the specified object is identical to the current async state token; otherwise, <see langword =" false" />.</returns >
36
+ </member >
37
+ <member name =" M:Microsoft.Extensions.AsyncState.AsyncStateToken.GetHashCode" >
38
+ <summary >
39
+ Returns the hash code for this instance.</summary >
40
+ <returns >A 32-bit signed integer hash code.</returns >
41
+ </member >
42
+ <member name =" M:Microsoft.Extensions.AsyncState.AsyncStateToken.op_Equality(Microsoft.Extensions.AsyncState.AsyncStateToken,Microsoft.Extensions.AsyncState.AsyncStateToken)" >
43
+ <summary >
44
+ Compares two instances.</summary >
45
+ <param name =" left" >Left argument of the comparison.</param >
46
+ <param name =" right" >Right argument of the comparison.</param >
47
+ <returns >
48
+ <see langword =" true" /> when equal, <see langword =" false" /> otherwise.</returns >
49
+ </member >
50
+ <member name =" M:Microsoft.Extensions.AsyncState.AsyncStateToken.op_Inequality(Microsoft.Extensions.AsyncState.AsyncStateToken,Microsoft.Extensions.AsyncState.AsyncStateToken)" >
51
+ <summary >
52
+ Compares two instances.</summary >
53
+ <param name =" left" >Left argument of the comparison.</param >
54
+ <param name =" right" >Right argument of the comparison.</param >
55
+ <returns >
56
+ <see langword =" true" /> when not equal, <see langword =" false" /> otherwise.</returns >
57
+ </member >
58
+ <member name =" T:Microsoft.Extensions.AsyncState.IAsyncContext`1" >
59
+ <summary >
60
+ Provides access to the current async context.</summary >
61
+ <typeparam name =" T" >The type of the asynchronous state.</typeparam >
62
+ </member >
63
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncContext`1.Get" >
64
+ <summary >
65
+ Gets current async context.</summary >
66
+ <exception cref =" T:System.InvalidOperationException" >Context is not initialized.</exception >
67
+ <returns >Current async context.</returns >
68
+ </member >
69
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncContext`1.Set(`0)" >
70
+ <summary >
71
+ Sets async context.</summary >
72
+ <param name =" context" >Context to be set.</param >
73
+ <exception cref =" T:System.InvalidOperationException" >Context is not initialized.</exception >
74
+ </member >
75
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncContext`1.TryGet(`0@)" >
76
+ <summary >
77
+ Tries to get the current async context.</summary >
78
+ <param name =" context" >Receives the context.</param >
79
+ <returns >
80
+ <see langword =" true" /> if the context is initialized; otherwise, <see langword =" false" />.</returns >
81
+ </member >
82
+ <member name =" T:Microsoft.Extensions.AsyncState.IAsyncLocalContext`1" >
83
+ <summary >
84
+ Provides access to the current async context stored outside of the HTTP pipeline.</summary >
85
+ <typeparam name =" T" >The type of the asynchronous state.</typeparam >
86
+ </member >
87
+ <member name =" T:Microsoft.Extensions.AsyncState.IAsyncState" >
88
+ <summary >
89
+ Encapsulates all information within the asynchronous flow in an <see cref =" T:System.Threading.AsyncLocal`1" /> variable.</summary >
90
+ </member >
91
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncState.Get(Microsoft.Extensions.AsyncState.AsyncStateToken)" >
92
+ <summary >
93
+ Gets the stored async context from the state.</summary >
94
+ <param name =" token" >The token representing the state to extract.</param >
95
+ <exception cref =" T:System.InvalidOperationException" >The context is not initialized.</exception >
96
+ <returns >The asynchronous state corresponding to the token.</returns >
97
+ </member >
98
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncState.Initialize" >
99
+ <summary >
100
+ Initializes async state in current asynchronous flow.</summary >
101
+ </member >
102
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncState.RegisterAsyncContext" >
103
+ <summary >
104
+ Registers new async context with the state.</summary >
105
+ <returns >Token that gives access to the reserved context.</returns >
106
+ </member >
107
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncState.Reset" >
108
+ <summary >
109
+ Resets async state after usage.</summary >
110
+ </member >
111
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncState.Set(Microsoft.Extensions.AsyncState.AsyncStateToken,System.Object)" >
112
+ <summary >
113
+ Stores async context.</summary >
114
+ <param name =" token" >The token representing the state to store.</param >
115
+ <param name =" value" >New state value.</param >
116
+ <exception cref =" T:System.InvalidOperationException" >Context is not initialized.</exception >
117
+ </member >
118
+ <member name =" M:Microsoft.Extensions.AsyncState.IAsyncState.TryGet(Microsoft.Extensions.AsyncState.AsyncStateToken,System.Object@)" >
119
+ <summary >
120
+ Tries to get the stored async context from the state.</summary >
121
+ <param name =" token" >The token representing the state to extract.</param >
122
+ <param name =" value" >
123
+ Receives the value associated with the specified token, if the context is initialized;
124
+ otherwise, the default value for the type of the <paramref name =" value" /> parameter.</param >
125
+ <returns >
126
+ <see langword =" true" /> if the context is initialized; otherwise, <see langword =" false" />.</returns >
127
+ </member >
128
+ </members >
129
+ </doc >
0 commit comments