1 <?xml version="1.0"?>
\r
4 <name>Microsoft.Extensions.DependencyInjection.Abstractions</name>
\r
7 <member name="T:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions">
\r
9 Extension methods for adding and removing services to an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
\r
12 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
\r
14 Adds the specified <paramref name="descriptor"/> to the <paramref name="collection"/>.
\r
16 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
17 <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to add.</param>
\r
18 <returns>A reference to the current instance of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
\r
20 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
\r
22 Adds a sequence of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to the <paramref name="collection"/>.
\r
24 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
25 <param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s to add.</param>
\r
26 <returns>A reference to the current instance of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
\r
28 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAdd(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
\r
30 Adds the specified <paramref name="descriptor"/> to the <paramref name="collection"/> if the
\r
31 service type hasn't already been registered.
\r
33 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
34 <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to add.</param>
\r
36 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAdd(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
\r
38 Adds the specified <paramref name="descriptors"/> to the <paramref name="collection"/> if the
\r
39 service type hasn't already been registered.
\r
41 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
42 <param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s to add.</param>
\r
44 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
\r
46 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
\r
47 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
49 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
50 <param name="service">The type of the service to register.</param>
\r
52 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
\r
54 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
\r
55 with the <paramref name="implementationType"/> implementation
\r
56 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
58 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
59 <param name="service">The type of the service to register.</param>
\r
60 <param name="implementationType">The implementation type of the service.</param>
\r
62 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
64 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
\r
65 using the factory specified in <paramref name="implementationFactory"/>
\r
66 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
68 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
69 <param name="service">The type of the service to register.</param>
\r
70 <param name="implementationFactory">The factory that creates the service.</param>
\r
72 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
74 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
\r
75 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
77 <typeparam name="TService">The type of the service to add.</typeparam>
\r
78 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
80 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
82 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
\r
83 implementation type specified in <typeparamref name="TImplementation"/>
\r
84 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
86 <typeparam name="TService">The type of the service to add.</typeparam>
\r
87 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
88 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
90 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
\r
92 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
\r
93 using the factory specified in <paramref name="implementationFactory"/>
\r
94 to the <paramref name="services"/> if the service type hasn't already been registered.
\r
96 <typeparam name="TService">The type of the service to add.</typeparam>
\r
97 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
98 <param name="implementationFactory">The factory that creates the service.</param>
\r
100 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
\r
102 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
\r
103 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
105 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
106 <param name="service">The type of the service to register.</param>
\r
108 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
\r
110 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
\r
111 with the <paramref name="implementationType"/> implementation
\r
112 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
114 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
115 <param name="service">The type of the service to register.</param>
\r
116 <param name="implementationType">The implementation type of the service.</param>
\r
118 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
120 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
\r
121 using the factory specified in <paramref name="implementationFactory"/>
\r
122 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
124 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
125 <param name="service">The type of the service to register.</param>
\r
126 <param name="implementationFactory">The factory that creates the service.</param>
\r
128 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
130 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
\r
131 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
133 <typeparam name="TService">The type of the service to add.</typeparam>
\r
134 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
136 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
138 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
\r
139 implementation type specified in <typeparamref name="TImplementation"/>
\r
140 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
142 <typeparam name="TService">The type of the service to add.</typeparam>
\r
143 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
144 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
146 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
\r
148 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
\r
149 using the factory specified in <paramref name="implementationFactory"/>
\r
150 to the <paramref name="services"/> if the service type hasn't already been registered.
\r
152 <typeparam name="TService">The type of the service to add.</typeparam>
\r
153 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
154 <param name="implementationFactory">The factory that creates the service.</param>
\r
156 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
\r
158 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
\r
159 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
161 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
162 <param name="service">The type of the service to register.</param>
\r
164 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
\r
166 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
\r
167 with the <paramref name="implementationType"/> implementation
\r
168 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
170 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
171 <param name="service">The type of the service to register.</param>
\r
172 <param name="implementationType">The implementation type of the service.</param>
\r
174 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
176 Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
\r
177 using the factory specified in <paramref name="implementationFactory"/>
\r
178 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
180 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
181 <param name="service">The type of the service to register.</param>
\r
182 <param name="implementationFactory">The factory that creates the service.</param>
\r
184 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
186 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
\r
187 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
189 <typeparam name="TService">The type of the service to add.</typeparam>
\r
190 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
192 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
194 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
\r
195 implementation type specified in <typeparamref name="TImplementation"/>
\r
196 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
198 <typeparam name="TService">The type of the service to add.</typeparam>
\r
199 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
200 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
202 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,``0)">
\r
204 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
\r
205 with an instance specified in <paramref name="instance"/>
\r
206 to the <paramref name="collection"/> if the service type hasn't already been registered.
\r
208 <typeparam name="TService">The type of the service to add.</typeparam>
\r
209 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
210 <param name="instance">The instance of the service to add.</param>
\r
212 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
\r
214 Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
\r
215 using the factory specified in <paramref name="implementationFactory"/>
\r
216 to the <paramref name="services"/> if the service type hasn't already been registered.
\r
218 <typeparam name="TService">The type of the service to add.</typeparam>
\r
219 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
220 <param name="implementationFactory">The factory that creates the service.</param>
\r
222 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
\r
224 Adds a <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> if an existing descriptor with the same
\r
225 <see cref="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType"/> and an implementation that does not already exist
\r
226 in <paramref name="services.."/>.
\r
228 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
229 <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</param>
\r
231 Use <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> when registering a service implementation of a
\r
233 supports multiple registrations of the same service type. Using
\r
234 <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> is not idempotent and can add
\r
236 <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> instances if called twice. Using
\r
237 <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> will prevent registration
\r
238 of multiple implementation types.
\r
241 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
\r
243 Adds the specified <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s if an existing descriptor with the same
\r
244 <see cref="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType"/> and an implementation that does not already exist
\r
245 in <paramref name="services.."/>.
\r
247 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
248 <param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s.</param>
\r
250 Use <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> when registering a service
\r
251 implementation of a service type that
\r
252 supports multiple registrations of the same service type. Using
\r
253 <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> is not idempotent and can add
\r
255 <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> instances if called twice. Using
\r
256 <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> will prevent registration
\r
257 of multiple implementation types.
\r
260 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Replace(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
\r
262 Removes the first service in <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> with the same service type
\r
263 as <paramref name="descriptor"/> and adds <paramref name="descriptor"/> to the collection.
\r
265 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
266 <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to replace with.</param>
\r
267 <returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> for chaining.</returns>
\r
269 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
271 Removes all services of type <typeparamref name="T"/> in <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
273 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
274 <returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> for chaining.</returns>
\r
276 <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
\r
278 Removes all services of type <paramref name="serviceType"/> in <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
280 <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
\r
281 <param name="serviceType">The service type to remove.</param>
\r
282 <returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> for chaining.</returns>
\r
284 <member name="T:Microsoft.Extensions.DependencyInjection.IServiceCollection">
\r
286 Specifies the contract for a collection of service descriptors.
\r
289 <member name="T:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1">
\r
291 Provides an extension point for creating a container specific builder and an <see cref="T:System.IServiceProvider"/>.
\r
294 <member name="M:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1.CreateBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
296 Creates a container builder from an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
298 <param name="services">The collection of services</param>
\r
299 <returns>A container builder that can be used to create an <see cref="T:System.IServiceProvider"/>.</returns>
\r
301 <member name="M:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1.CreateServiceProvider(`0)">
\r
303 Creates an <see cref="T:System.IServiceProvider"/> from the container builder.
\r
305 <param name="containerBuilder">The container builder</param>
\r
306 <returns>An <see cref="T:System.IServiceProvider"/></returns>
\r
308 <member name="T:Microsoft.Extensions.DependencyInjection.IServiceScope">
\r
310 The <see cref="M:System.IDisposable.Dispose"/> method ends the scope lifetime. Once Dispose
\r
311 is called, any scoped services that have been resolved from
\r
312 <see cref="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/> will be
\r
316 <member name="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider">
\r
318 The <see cref="T:System.IServiceProvider"/> used to resolve dependencies from the scope.
\r
321 <member name="T:Microsoft.Extensions.DependencyInjection.IServiceScopeFactory">
\r
323 A factory for creating instances of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/>, which is used to create
\r
324 services within a scope.
\r
327 <member name="M:Microsoft.Extensions.DependencyInjection.IServiceScopeFactory.CreateScope">
\r
329 Create an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> which
\r
330 contains an <see cref="T:System.IServiceProvider"/> used to resolve dependencies from a
\r
331 newly created scope.
\r
334 An <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> controlling the
\r
335 lifetime of the scope. Once this is disposed, any scoped services that have been resolved
\r
336 from the <see cref="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/>
\r
337 will also be disposed.
\r
340 <member name="T:Microsoft.Extensions.DependencyInjection.ISupportRequiredService">
\r
342 Optional contract used by <see cref="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)"/>
\r
343 to resolve services if supported by <see cref="T:System.IServiceProvider"/>.
\r
346 <member name="M:Microsoft.Extensions.DependencyInjection.ISupportRequiredService.GetRequiredService(System.Type)">
\r
348 Gets service of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/> implementing
\r
351 <param name="serviceType">An object that specifies the type of service object to get.</param>
\r
352 <returns>A service object of type <paramref name="serviceType"/>.
\r
353 Throws an exception if the <see cref="T:System.IServiceProvider"/> cannot create the object.</returns>
\r
355 <member name="T:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions">
\r
357 Extension methods for adding services to an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
\r
360 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
\r
362 Adds a transient service of the type specified in <paramref name="serviceType"/> with an
\r
363 implementation of the type specified in <paramref name="implementationType"/> to the
\r
364 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
366 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
367 <param name="serviceType">The type of the service to register.</param>
\r
368 <param name="implementationType">The implementation type of the service.</param>
\r
369 <returns>A reference to this instance after the operation has completed.</returns>
\r
370 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
\r
372 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
374 Adds a transient service of the type specified in <paramref name="serviceType"/> with a
\r
375 factory specified in <paramref name="implementationFactory"/> to the
\r
376 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
378 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
379 <param name="serviceType">The type of the service to register.</param>
\r
380 <param name="implementationFactory">The factory that creates the service.</param>
\r
381 <returns>A reference to this instance after the operation has completed.</returns>
\r
382 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
\r
384 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
386 Adds a transient service of the type specified in <typeparamref name="TService"/> with an
\r
387 implementation type specified in <typeparamref name="TImplementation"/> to the
\r
388 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
390 <typeparam name="TService">The type of the service to add.</typeparam>
\r
391 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
392 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
393 <returns>A reference to this instance after the operation has completed.</returns>
\r
394 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
\r
396 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
\r
398 Adds a transient service of the type specified in <paramref name="serviceType"/> to the
\r
399 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
401 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
402 <param name="serviceType">The type of the service to register and the implementation to use.</param>
\r
403 <returns>A reference to this instance after the operation has completed.</returns>
\r
404 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
\r
406 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
408 Adds a transient service of the type specified in <typeparamref name="TService"/> to the
\r
409 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
411 <typeparam name="TService">The type of the service to add.</typeparam>
\r
412 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
413 <returns>A reference to this instance after the operation has completed.</returns>
\r
414 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
\r
416 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
\r
418 Adds a transient service of the type specified in <typeparamref name="TService"/> with a
\r
419 factory specified in <paramref name="implementationFactory"/> to the
\r
420 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
422 <typeparam name="TService">The type of the service to add.</typeparam>
\r
423 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
424 <param name="implementationFactory">The factory that creates the service.</param>
\r
425 <returns>A reference to this instance after the operation has completed.</returns>
\r
426 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
\r
428 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
\r
430 Adds a transient service of the type specified in <typeparamref name="TService"/> with an
\r
431 implementation type specified in <typeparamref name="TImplementation" /> using the
\r
432 factory specified in <paramref name="implementationFactory"/> to the
\r
433 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
435 <typeparam name="TService">The type of the service to add.</typeparam>
\r
436 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
437 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
438 <param name="implementationFactory">The factory that creates the service.</param>
\r
439 <returns>A reference to this instance after the operation has completed.</returns>
\r
440 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
\r
442 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
\r
444 Adds a scoped service of the type specified in <paramref name="serviceType"/> with an
\r
445 implementation of the type specified in <paramref name="implementationType"/> to the
\r
446 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
448 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
449 <param name="serviceType">The type of the service to register.</param>
\r
450 <param name="implementationType">The implementation type of the service.</param>
\r
451 <returns>A reference to this instance after the operation has completed.</returns>
\r
452 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
\r
454 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
456 Adds a scoped service of the type specified in <paramref name="serviceType"/> with a
\r
457 factory specified in <paramref name="implementationFactory"/> to the
\r
458 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
460 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
461 <param name="serviceType">The type of the service to register.</param>
\r
462 <param name="implementationFactory">The factory that creates the service.</param>
\r
463 <returns>A reference to this instance after the operation has completed.</returns>
\r
464 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
\r
466 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
468 Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
\r
469 implementation type specified in <typeparamref name="TImplementation"/> to the
\r
470 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
472 <typeparam name="TService">The type of the service to add.</typeparam>
\r
473 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
474 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
475 <returns>A reference to this instance after the operation has completed.</returns>
\r
476 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
\r
478 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
\r
480 Adds a scoped service of the type specified in <paramref name="serviceType"/> to the
\r
481 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
483 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
484 <param name="serviceType">The type of the service to register and the implementation to use.</param>
\r
485 <returns>A reference to this instance after the operation has completed.</returns>
\r
486 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
\r
488 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
490 Adds a scoped service of the type specified in <typeparamref name="TService"/> to the
\r
491 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
493 <typeparam name="TService">The type of the service to add.</typeparam>
\r
494 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
495 <returns>A reference to this instance after the operation has completed.</returns>
\r
496 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
\r
498 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
\r
500 Adds a scoped service of the type specified in <typeparamref name="TService"/> with a
\r
501 factory specified in <paramref name="implementationFactory"/> to the
\r
502 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
504 <typeparam name="TService">The type of the service to add.</typeparam>
\r
505 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
506 <param name="implementationFactory">The factory that creates the service.</param>
\r
507 <returns>A reference to this instance after the operation has completed.</returns>
\r
508 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
\r
510 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
\r
512 Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
\r
513 implementation type specified in <typeparamref name="TImplementation" /> using the
\r
514 factory specified in <paramref name="implementationFactory"/> to the
\r
515 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
517 <typeparam name="TService">The type of the service to add.</typeparam>
\r
518 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
519 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
520 <param name="implementationFactory">The factory that creates the service.</param>
\r
521 <returns>A reference to this instance after the operation has completed.</returns>
\r
522 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
\r
524 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
\r
526 Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
\r
527 implementation of the type specified in <paramref name="implementationType"/> to the
\r
528 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
530 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
531 <param name="serviceType">The type of the service to register.</param>
\r
532 <param name="implementationType">The implementation type of the service.</param>
\r
533 <returns>A reference to this instance after the operation has completed.</returns>
\r
534 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
536 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
538 Adds a singleton service of the type specified in <paramref name="serviceType"/> with a
\r
539 factory specified in <paramref name="implementationFactory"/> to the
\r
540 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
542 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
543 <param name="serviceType">The type of the service to register.</param>
\r
544 <param name="implementationFactory">The factory that creates the service.</param>
\r
545 <returns>A reference to this instance after the operation has completed.</returns>
\r
546 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
548 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
550 Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
\r
551 implementation type specified in <typeparamref name="TImplementation"/> to the
\r
552 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
554 <typeparam name="TService">The type of the service to add.</typeparam>
\r
555 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
556 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
557 <returns>A reference to this instance after the operation has completed.</returns>
\r
558 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
560 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
\r
562 Adds a singleton service of the type specified in <paramref name="serviceType"/> to the
\r
563 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
565 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
566 <param name="serviceType">The type of the service to register and the implementation to use.</param>
\r
567 <returns>A reference to this instance after the operation has completed.</returns>
\r
568 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
570 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
\r
572 Adds a singleton service of the type specified in <typeparamref name="TService"/> to the
\r
573 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
575 <typeparam name="TService">The type of the service to add.</typeparam>
\r
576 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
577 <returns>A reference to this instance after the operation has completed.</returns>
\r
578 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
580 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
\r
582 Adds a singleton service of the type specified in <typeparamref name="TService"/> with a
\r
583 factory specified in <paramref name="implementationFactory"/> to the
\r
584 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
586 <typeparam name="TService">The type of the service to add.</typeparam>
\r
587 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
588 <param name="implementationFactory">The factory that creates the service.</param>
\r
589 <returns>A reference to this instance after the operation has completed.</returns>
\r
590 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
592 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
\r
594 Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
\r
595 implementation type specified in <typeparamref name="TImplementation" /> using the
\r
596 factory specified in <paramref name="implementationFactory"/> to the
\r
597 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
599 <typeparam name="TService">The type of the service to add.</typeparam>
\r
600 <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
\r
601 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
602 <param name="implementationFactory">The factory that creates the service.</param>
\r
603 <returns>A reference to this instance after the operation has completed.</returns>
\r
604 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
606 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Object)">
\r
608 Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
\r
609 instance specified in <paramref name="implementationInstance"/> to the
\r
610 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
612 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
613 <param name="serviceType">The type of the service to register.</param>
\r
614 <param name="implementationInstance">The instance of the service.</param>
\r
615 <returns>A reference to this instance after the operation has completed.</returns>
\r
616 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
618 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,``0)">
\r
620 Adds a singleton service of the type specified in <typeparamref name="TService" /> with an
\r
621 instance specified in <paramref name="implementationInstance"/> to the
\r
622 specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
624 <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
\r
625 <param name="implementationInstance">The instance of the service.</param>
\r
626 <returns>A reference to this instance after the operation has completed.</returns>
\r
627 <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
\r
629 <member name="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor">
\r
631 Describes a service with its service type, implementation, and lifetime.
\r
634 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Type,Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
\r
636 Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="implementationType"/>.
\r
638 <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
\r
639 <param name="implementationType">The <see cref="T:System.Type"/> implementing the service.</param>
\r
640 <param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
\r
642 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Object)">
\r
644 Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="instance"/>
\r
645 as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>.
\r
647 <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
\r
648 <param name="instance">The instance implementing the service.</param>
\r
650 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Func{System.IServiceProvider,System.Object},Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
\r
652 Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="factory"/>.
\r
654 <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
\r
655 <param name="factory">A factory used for creating service instances.</param>
\r
656 <param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
\r
658 <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Lifetime">
\r
661 <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType">
\r
664 <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationType">
\r
667 <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationInstance">
\r
670 <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationFactory">
\r
673 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ToString">
\r
676 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``2">
\r
678 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
679 <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
\r
680 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
\r
682 <typeparam name="TService">The type of the service.</typeparam>
\r
683 <typeparam name="TImplementation">The type of the implementation.</typeparam>
\r
684 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
686 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient(System.Type,System.Type)">
\r
688 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
689 <paramref name="service"/> and <paramref name="implementationType"/>
\r
690 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
\r
692 <param name="service">The type of the service.</param>
\r
693 <param name="implementationType">The type of the implementation.</param>
\r
694 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
696 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``2(System.Func{System.IServiceProvider,``1})">
\r
698 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
699 <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
\r
700 <paramref name="implementationFactory"/>,
\r
701 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
\r
703 <typeparam name="TService">The type of the service.</typeparam>
\r
704 <typeparam name="TImplementation">The type of the implementation.</typeparam>
\r
705 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
706 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
708 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``1(System.Func{System.IServiceProvider,``0})">
\r
710 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
711 <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
\r
712 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
\r
714 <typeparam name="TService">The type of the service.</typeparam>
\r
715 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
716 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
718 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient(System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
720 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
721 <paramref name="service"/>, <paramref name="implementationFactory"/>,
\r
722 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
\r
724 <param name="service">The type of the service.</param>
\r
725 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
726 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
728 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``2">
\r
730 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
731 <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
\r
732 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
\r
734 <typeparam name="TService">The type of the service.</typeparam>
\r
735 <typeparam name="TImplementation">The type of the implementation.</typeparam>
\r
736 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
738 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped(System.Type,System.Type)">
\r
740 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
741 <paramref name="service"/> and <paramref name="implementationType"/>
\r
742 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
\r
744 <param name="service">The type of the service.</param>
\r
745 <param name="implementationType">The type of the implementation.</param>
\r
746 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
748 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``2(System.Func{System.IServiceProvider,``1})">
\r
750 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
751 <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
\r
752 <paramref name="implementationFactory"/>,
\r
753 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
\r
755 <typeparam name="TService">The type of the service.</typeparam>
\r
756 <typeparam name="TImplementation">The type of the implementation.</typeparam>
\r
757 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
758 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
760 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``1(System.Func{System.IServiceProvider,``0})">
\r
762 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
763 <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
\r
764 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
\r
766 <typeparam name="TService">The type of the service.</typeparam>
\r
767 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
768 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
770 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped(System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
772 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
773 <paramref name="service"/>, <paramref name="implementationFactory"/>,
\r
774 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
\r
776 <param name="service">The type of the service.</param>
\r
777 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
778 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
780 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``2">
\r
782 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
783 <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
\r
784 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
\r
786 <typeparam name="TService">The type of the service.</typeparam>
\r
787 <typeparam name="TImplementation">The type of the implementation.</typeparam>
\r
788 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
790 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Type)">
\r
792 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
793 <paramref name="service"/> and <paramref name="implementationType"/>
\r
794 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
\r
796 <param name="service">The type of the service.</param>
\r
797 <param name="implementationType">The type of the implementation.</param>
\r
798 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
800 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``2(System.Func{System.IServiceProvider,``1})">
\r
802 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
803 <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
\r
804 <paramref name="implementationFactory"/>,
\r
805 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
\r
807 <typeparam name="TService">The type of the service.</typeparam>
\r
808 <typeparam name="TImplementation">The type of the implementation.</typeparam>
\r
809 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
810 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
812 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``1(System.Func{System.IServiceProvider,``0})">
\r
814 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
815 <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
\r
816 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
\r
818 <typeparam name="TService">The type of the service.</typeparam>
\r
819 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
820 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
822 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Func{System.IServiceProvider,System.Object})">
\r
824 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
825 <paramref name="serviceType"/>, <paramref name="implementationFactory"/>,
\r
826 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
\r
828 <param name="serviceType">The type of the service.</param>
\r
829 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
830 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
832 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``1(``0)">
\r
834 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
835 <typeparamref name="TService"/>, <paramref name="implementationInstance"/>,
\r
836 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
\r
838 <typeparam name="TService">The type of the service.</typeparam>
\r
839 <param name="implementationInstance">The instance of the implementation.</param>
\r
840 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
842 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Object)">
\r
844 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
845 <paramref name="serviceType"/>, <paramref name="implementationInstance"/>,
\r
846 and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
\r
848 <param name="serviceType">The type of the service.</param>
\r
849 <param name="implementationInstance">The instance of the implementation.</param>
\r
850 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
852 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(System.Type,System.Type,Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
\r
854 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
855 <paramref name="serviceType"/>, <paramref name="implementationType"/>,
\r
856 and <paramref name="lifetime"/>.
\r
858 <param name="serviceType">The type of the service.</param>
\r
859 <param name="implementationType">The type of the implementation.</param>
\r
860 <param name="lifetime">The lifetime of the service.</param>
\r
861 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
863 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(System.Type,System.Func{System.IServiceProvider,System.Object},Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
\r
865 Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
\r
866 <paramref name="serviceType"/>, <paramref name="implementationFactory"/>,
\r
867 and <paramref name="lifetime"/>.
\r
869 <param name="serviceType">The type of the service.</param>
\r
870 <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
\r
871 <param name="lifetime">The lifetime of the service.</param>
\r
872 <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
\r
874 <member name="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime">
\r
876 Specifies the lifetime of a service in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
\r
879 <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton">
\r
881 Specifies that a single instance of the service will be created.
\r
884 <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped">
\r
886 Specifies that a new instance of the service will be created for each scope.
\r
889 In ASP.NET Core applications a scope is created around each server request.
\r
892 <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient">
\r
894 Specifies that a new instance of the service will be created every time it is requested.
\r
897 <member name="T:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions">
\r
899 Extension methods for getting services from an <see cref="T:System.IServiceProvider" />.
\r
902 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService``1(System.IServiceProvider)">
\r
904 Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
\r
906 <typeparam name="T">The type of service object to get.</typeparam>
\r
907 <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
\r
908 <returns>A service object of type <typeparamref name="T"/> or null if there is no such service.</returns>
\r
910 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(System.IServiceProvider,System.Type)">
\r
912 Get service of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
\r
914 <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
\r
915 <param name="serviceType">An object that specifies the type of service object to get.</param>
\r
916 <returns>A service object of type <paramref name="serviceType"/>.</returns>
\r
917 <exception cref="T:System.InvalidOperationException">There is no service of type <paramref name="serviceType"/>.</exception>
\r
919 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)">
\r
921 Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
\r
923 <typeparam name="T">The type of service object to get.</typeparam>
\r
924 <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
\r
925 <returns>A service object of type <typeparamref name="T"/>.</returns>
\r
926 <exception cref="T:System.InvalidOperationException">There is no service of type <typeparamref name="T"/>.</exception>
\r
928 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices``1(System.IServiceProvider)">
\r
930 Get an enumeration of services of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
\r
932 <typeparam name="T">The type of service object to get.</typeparam>
\r
933 <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
\r
934 <returns>An enumeration of services of type <typeparamref name="T"/>.</returns>
\r
936 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices(System.IServiceProvider,System.Type)">
\r
938 Get an enumeration of services of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
\r
940 <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
\r
941 <param name="serviceType">An object that specifies the type of service object to get.</param>
\r
942 <returns>An enumeration of services of type <paramref name="serviceType"/>.</returns>
\r
944 <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.CreateScope(System.IServiceProvider)">
\r
946 Creates a new <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.
\r
948 <param name="provider">The <see cref="T:System.IServiceProvider"/> to create the scope from.</param>
\r
949 <returns>A <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.</returns>
\r
951 <member name="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilities">
\r
953 Helper code for the various activator services.
\r
956 <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(System.IServiceProvider,System.Type,System.Object[])">
\r
958 Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
\r
960 <param name="provider">The service provider used to resolve dependencies</param>
\r
961 <param name="instanceType">The type to activate</param>
\r
962 <param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
\r
963 <returns>An activated object of type instanceType</returns>
\r
965 <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])">
\r
967 Create a delegate that will instantiate a type with constructor arguments provided directly
\r
968 and/or from an <see cref="T:System.IServiceProvider"/>.
\r
970 <param name="instanceType">The type to activate</param>
\r
971 <param name="argumentTypes">
\r
972 The types of objects, in order, that will be passed to the returned function as its second parameter
\r
975 A factory that will instantiate instanceType using an <see cref="T:System.IServiceProvider"/>
\r
976 and an argument array containing objects matching the types defined in argumentTypes
\r
979 <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance``1(System.IServiceProvider,System.Object[])">
\r
981 Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
\r
983 <typeparam name="T">The type to activate</typeparam>
\r
984 <param name="provider">The service provider used to resolve dependencies</param>
\r
985 <param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
\r
986 <returns>An activated object of type T</returns>
\r
988 <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance``1(System.IServiceProvider)">
\r
990 Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
\r
992 <typeparam name="T">The type of the service</typeparam>
\r
993 <param name="provider">The service provider used to resolve dependencies</param>
\r
994 <returns>The resolved service or created instance</returns>
\r
996 <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance(System.IServiceProvider,System.Type)">
\r
998 Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
\r
1000 <param name="provider">The service provider</param>
\r
1001 <param name="type">The type of the service</param>
\r
1002 <returns>The resolved service or created instance</returns>
\r
1004 <member name="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructorAttribute">
\r
1006 Marks the constructor to be used when activating type using <see cref="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilities"/>.
\r
1009 <member name="T:Microsoft.Extensions.DependencyInjection.ObjectFactory">
\r
1011 The result of <see cref="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])"/>.
\r
1013 <param name="serviceProvider">The <see cref="T:System.IServiceProvider"/> to get service arguments from.</param>
\r
1014 <param name="arguments">Additional constructor arguments.</param>
\r
1015 <returns>The instantiated type.</returns>
\r
1017 <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.AmbiguousConstructorMatch">
\r
1018 <summary>Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.</summary>
\r
1020 <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatAmbiguousConstructorMatch(System.Object)">
\r
1021 <summary>Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.</summary>
\r
1023 <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.CannotLocateImplementation">
\r
1024 <summary>Unable to locate implementation '{0}' for service '{1}'.</summary>
\r
1026 <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatCannotLocateImplementation(System.Object,System.Object)">
\r
1027 <summary>Unable to locate implementation '{0}' for service '{1}'.</summary>
\r
1029 <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.CannotResolveService">
\r
1030 <summary>Unable to resolve service for type '{0}' while attempting to activate '{1}'.</summary>
\r
1032 <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatCannotResolveService(System.Object,System.Object)">
\r
1033 <summary>Unable to resolve service for type '{0}' while attempting to activate '{1}'.</summary>
\r
1035 <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.NoConstructorMatch">
\r
1036 <summary>A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.</summary>
\r
1038 <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatNoConstructorMatch(System.Object)">
\r
1039 <summary>A suitable constructor for type '{0}' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.</summary>
\r
1041 <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.NoServiceRegistered">
\r
1042 <summary>No service for type '{0}' has been registered.</summary>
\r
1044 <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatNoServiceRegistered(System.Object)">
\r
1045 <summary>No service for type '{0}' has been registered.</summary>
\r
1047 <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.TryAddIndistinguishableTypeToEnumerable">
\r
1048 <summary>Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.</summary>
\r
1050 <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatTryAddIndistinguishableTypeToEnumerable(System.Object,System.Object)">
\r
1051 <summary>Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.</summary>
\r