Microsoft.Extensions.DependencyInjection.Abstractions.xml 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>Microsoft.Extensions.DependencyInjection.Abstractions</name>
  5. </assembly>
  6. <members>
  7. <member name="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilities">
  8. <summary>
  9. Helper code for the various activator services.
  10. </summary>
  11. </member>
  12. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(System.IServiceProvider,System.Type,System.Object[])">
  13. <summary>
  14. Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
  15. </summary>
  16. <param name="provider">The service provider used to resolve dependencies</param>
  17. <param name="instanceType">The type to activate</param>
  18. <param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
  19. <returns>An activated object of type instanceType</returns>
  20. </member>
  21. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])">
  22. <summary>
  23. Create a delegate that will instantiate a type with constructor arguments provided directly
  24. and/or from an <see cref="T:System.IServiceProvider"/>.
  25. </summary>
  26. <param name="instanceType">The type to activate</param>
  27. <param name="argumentTypes">
  28. The types of objects, in order, that will be passed to the returned function as its second parameter
  29. </param>
  30. <returns>
  31. A factory that will instantiate instanceType using an <see cref="T:System.IServiceProvider"/>
  32. and an argument array containing objects matching the types defined in argumentTypes
  33. </returns>
  34. </member>
  35. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance``1(System.IServiceProvider,System.Object[])">
  36. <summary>
  37. Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
  38. </summary>
  39. <typeparam name="T">The type to activate</typeparam>
  40. <param name="provider">The service provider used to resolve dependencies</param>
  41. <param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
  42. <returns>An activated object of type T</returns>
  43. </member>
  44. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance``1(System.IServiceProvider)">
  45. <summary>
  46. Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
  47. </summary>
  48. <typeparam name="T">The type of the service</typeparam>
  49. <param name="provider">The service provider used to resolve dependencies</param>
  50. <returns>The resolved service or created instance</returns>
  51. </member>
  52. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance(System.IServiceProvider,System.Type)">
  53. <summary>
  54. Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
  55. </summary>
  56. <param name="provider">The service provider</param>
  57. <param name="type">The type of the service</param>
  58. <returns>The resolved service or created instance</returns>
  59. </member>
  60. <member name="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructorAttribute">
  61. <summary>
  62. Marks the constructor to be used when activating type using <see cref="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilities"/>.
  63. </summary>
  64. </member>
  65. <member name="T:Microsoft.Extensions.DependencyInjection.AsyncServiceScope">
  66. <summary>
  67. An <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope" /> implementation that implements <see cref="T:System.IAsyncDisposable" />.
  68. </summary>
  69. </member>
  70. <member name="M:Microsoft.Extensions.DependencyInjection.AsyncServiceScope.#ctor(Microsoft.Extensions.DependencyInjection.IServiceScope)">
  71. <summary>
  72. Initializes a new instance of the <see cref="T:Microsoft.Extensions.DependencyInjection.AsyncServiceScope"/> struct.
  73. Wraps an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope" />.
  74. </summary>
  75. <param name="serviceScope">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> instance to wrap.</param>
  76. </member>
  77. <member name="P:Microsoft.Extensions.DependencyInjection.AsyncServiceScope.ServiceProvider">
  78. <inheritdoc />
  79. </member>
  80. <member name="M:Microsoft.Extensions.DependencyInjection.AsyncServiceScope.Dispose">
  81. <inheritdoc />
  82. </member>
  83. <member name="M:Microsoft.Extensions.DependencyInjection.AsyncServiceScope.DisposeAsync">
  84. <inheritdoc />
  85. </member>
  86. <member name="T:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions">
  87. <summary>
  88. Extension methods for adding and removing services to an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
  89. </summary>
  90. </member>
  91. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  92. <summary>
  93. Adds the specified <paramref name="descriptor"/> to the <paramref name="collection"/>.
  94. </summary>
  95. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  96. <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to add.</param>
  97. <returns>A reference to the current instance of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
  98. </member>
  99. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
  100. <summary>
  101. Adds a sequence of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to the <paramref name="collection"/>.
  102. </summary>
  103. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  104. <param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s to add.</param>
  105. <returns>A reference to the current instance of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</returns>
  106. </member>
  107. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAdd(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  108. <summary>
  109. Adds the specified <paramref name="descriptor"/> to the <paramref name="collection"/> if the
  110. service type hasn't already been registered.
  111. </summary>
  112. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  113. <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to add.</param>
  114. </member>
  115. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAdd(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
  116. <summary>
  117. Adds the specified <paramref name="descriptors"/> to the <paramref name="collection"/> if the
  118. service type hasn't already been registered.
  119. </summary>
  120. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  121. <param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s to add.</param>
  122. </member>
  123. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  124. <summary>
  125. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
  126. to the <paramref name="collection"/> if the service type hasn't already been registered.
  127. </summary>
  128. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  129. <param name="service">The type of the service to register.</param>
  130. </member>
  131. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  132. <summary>
  133. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
  134. with the <paramref name="implementationType"/> implementation
  135. to the <paramref name="collection"/> if the service type hasn't already been registered.
  136. </summary>
  137. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  138. <param name="service">The type of the service to register.</param>
  139. <param name="implementationType">The implementation type of the service.</param>
  140. </member>
  141. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  142. <summary>
  143. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
  144. using the factory specified in <paramref name="implementationFactory"/>
  145. to the <paramref name="collection"/> if the service type hasn't already been registered.
  146. </summary>
  147. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  148. <param name="service">The type of the service to register.</param>
  149. <param name="implementationFactory">The factory that creates the service.</param>
  150. </member>
  151. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  152. <summary>
  153. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
  154. to the <paramref name="collection"/> if the service type hasn't already been registered.
  155. </summary>
  156. <typeparam name="TService">The type of the service to add.</typeparam>
  157. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  158. </member>
  159. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  160. <summary>
  161. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
  162. implementation type specified in <typeparamref name="TImplementation"/>
  163. to the <paramref name="collection"/> if the service type hasn't already been registered.
  164. </summary>
  165. <typeparam name="TService">The type of the service to add.</typeparam>
  166. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  167. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  168. </member>
  169. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  170. <summary>
  171. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> service
  172. using the factory specified in <paramref name="implementationFactory"/>
  173. to the <paramref name="services"/> if the service type hasn't already been registered.
  174. </summary>
  175. <typeparam name="TService">The type of the service to add.</typeparam>
  176. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  177. <param name="implementationFactory">The factory that creates the service.</param>
  178. </member>
  179. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  180. <summary>
  181. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
  182. to the <paramref name="collection"/> if the service type hasn't already been registered.
  183. </summary>
  184. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  185. <param name="service">The type of the service to register.</param>
  186. </member>
  187. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  188. <summary>
  189. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
  190. with the <paramref name="implementationType"/> implementation
  191. to the <paramref name="collection"/> if the service type hasn't already been registered.
  192. </summary>
  193. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  194. <param name="service">The type of the service to register.</param>
  195. <param name="implementationType">The implementation type of the service.</param>
  196. </member>
  197. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  198. <summary>
  199. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
  200. using the factory specified in <paramref name="implementationFactory"/>
  201. to the <paramref name="collection"/> if the service type hasn't already been registered.
  202. </summary>
  203. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  204. <param name="service">The type of the service to register.</param>
  205. <param name="implementationFactory">The factory that creates the service.</param>
  206. </member>
  207. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  208. <summary>
  209. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
  210. to the <paramref name="collection"/> if the service type hasn't already been registered.
  211. </summary>
  212. <typeparam name="TService">The type of the service to add.</typeparam>
  213. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  214. </member>
  215. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  216. <summary>
  217. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
  218. implementation type specified in <typeparamref name="TImplementation"/>
  219. to the <paramref name="collection"/> if the service type hasn't already been registered.
  220. </summary>
  221. <typeparam name="TService">The type of the service to add.</typeparam>
  222. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  223. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  224. </member>
  225. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  226. <summary>
  227. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> service
  228. using the factory specified in <paramref name="implementationFactory"/>
  229. to the <paramref name="services"/> if the service type hasn't already been registered.
  230. </summary>
  231. <typeparam name="TService">The type of the service to add.</typeparam>
  232. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  233. <param name="implementationFactory">The factory that creates the service.</param>
  234. </member>
  235. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  236. <summary>
  237. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
  238. to the <paramref name="collection"/> if the service type hasn't already been registered.
  239. </summary>
  240. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  241. <param name="service">The type of the service to register.</param>
  242. </member>
  243. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  244. <summary>
  245. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
  246. with the <paramref name="implementationType"/> implementation
  247. to the <paramref name="collection"/> if the service type hasn't already been registered.
  248. </summary>
  249. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  250. <param name="service">The type of the service to register.</param>
  251. <param name="implementationType">The implementation type of the service.</param>
  252. </member>
  253. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  254. <summary>
  255. Adds the specified <paramref name="service"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
  256. using the factory specified in <paramref name="implementationFactory"/>
  257. to the <paramref name="collection"/> if the service type hasn't already been registered.
  258. </summary>
  259. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  260. <param name="service">The type of the service to register.</param>
  261. <param name="implementationFactory">The factory that creates the service.</param>
  262. </member>
  263. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  264. <summary>
  265. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
  266. to the <paramref name="collection"/> if the service type hasn't already been registered.
  267. </summary>
  268. <typeparam name="TService">The type of the service to add.</typeparam>
  269. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  270. </member>
  271. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  272. <summary>
  273. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
  274. implementation type specified in <typeparamref name="TImplementation"/>
  275. to the <paramref name="collection"/> if the service type hasn't already been registered.
  276. </summary>
  277. <typeparam name="TService">The type of the service to add.</typeparam>
  278. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  279. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  280. </member>
  281. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,``0)">
  282. <summary>
  283. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
  284. with an instance specified in <paramref name="instance"/>
  285. to the <paramref name="collection"/> if the service type hasn't already been registered.
  286. </summary>
  287. <typeparam name="TService">The type of the service to add.</typeparam>
  288. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  289. <param name="instance">The instance of the service to add.</param>
  290. </member>
  291. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  292. <summary>
  293. Adds the specified <typeparamref name="TService"/> as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> service
  294. using the factory specified in <paramref name="implementationFactory"/>
  295. to the <paramref name="services"/> if the service type hasn't already been registered.
  296. </summary>
  297. <typeparam name="TService">The type of the service to add.</typeparam>
  298. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  299. <param name="implementationFactory">The factory that creates the service.</param>
  300. </member>
  301. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  302. <summary>
  303. Adds a <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> if an existing descriptor with the same
  304. <see cref="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType"/> and an implementation that does not already exist
  305. in <paramref name="services.."/>.
  306. </summary>
  307. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  308. <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</param>
  309. <remarks>
  310. 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
  311. service type that
  312. supports multiple registrations of the same service type. Using
  313. <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> is not idempotent and can add
  314. duplicate
  315. <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> instances if called twice. Using
  316. <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> will prevent registration
  317. of multiple implementation types.
  318. </remarks>
  319. </member>
  320. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable{Microsoft.Extensions.DependencyInjection.ServiceDescriptor})">
  321. <summary>
  322. Adds the specified <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s if an existing descriptor with the same
  323. <see cref="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType"/> and an implementation that does not already exist
  324. in <paramref name="services.."/>.
  325. </summary>
  326. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  327. <param name="descriptors">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>s.</param>
  328. <remarks>
  329. Use <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> when registering a service
  330. implementation of a service type that
  331. supports multiple registrations of the same service type. Using
  332. <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Add(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> is not idempotent and can add
  333. duplicate
  334. <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> instances if called twice. Using
  335. <see cref="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)"/> will prevent registration
  336. of multiple implementation types.
  337. </remarks>
  338. </member>
  339. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.Replace(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  340. <summary>
  341. Removes the first service in <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> with the same service type
  342. as <paramref name="descriptor"/> and adds <paramref name="descriptor"/> to the collection.
  343. </summary>
  344. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  345. <param name="descriptor">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> to replace with.</param>
  346. <returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> for chaining.</returns>
  347. </member>
  348. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  349. <summary>
  350. Removes all services of type <typeparamref name="T"/> in <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  351. </summary>
  352. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  353. <returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> for chaining.</returns>
  354. </member>
  355. <member name="M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  356. <summary>
  357. Removes all services of type <paramref name="serviceType"/> in <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  358. </summary>
  359. <param name="collection">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.</param>
  360. <param name="serviceType">The service type to remove.</param>
  361. <returns>The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> for chaining.</returns>
  362. </member>
  363. <member name="T:Microsoft.Extensions.DependencyInjection.IServiceCollection">
  364. <summary>
  365. Specifies the contract for a collection of service descriptors.
  366. </summary>
  367. </member>
  368. <member name="T:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1">
  369. <summary>
  370. Provides an extension point for creating a container specific builder and an <see cref="T:System.IServiceProvider"/>.
  371. </summary>
  372. </member>
  373. <member name="M:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1.CreateBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  374. <summary>
  375. Creates a container builder from an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  376. </summary>
  377. <param name="services">The collection of services</param>
  378. <returns>A container builder that can be used to create an <see cref="T:System.IServiceProvider"/>.</returns>
  379. </member>
  380. <member name="M:Microsoft.Extensions.DependencyInjection.IServiceProviderFactory`1.CreateServiceProvider(`0)">
  381. <summary>
  382. Creates an <see cref="T:System.IServiceProvider"/> from the container builder.
  383. </summary>
  384. <param name="containerBuilder">The container builder</param>
  385. <returns>An <see cref="T:System.IServiceProvider"/></returns>
  386. </member>
  387. <member name="T:Microsoft.Extensions.DependencyInjection.IServiceProviderIsService">
  388. <summary>
  389. Optional service used to determine if the specified type is available from the <see cref="T:System.IServiceProvider"/>.
  390. </summary>
  391. </member>
  392. <member name="M:Microsoft.Extensions.DependencyInjection.IServiceProviderIsService.IsService(System.Type)">
  393. <summary>
  394. Determines if the specified service type is available from the <see cref="T:System.IServiceProvider"/>.
  395. </summary>
  396. <param name="serviceType">An object that specifies the type of service object to test.</param>
  397. <returns>true if the specified service is a available, false if it is not.</returns>
  398. </member>
  399. <member name="T:Microsoft.Extensions.DependencyInjection.IServiceScope">
  400. <summary>
  401. The <see cref="M:System.IDisposable.Dispose"/> method ends the scope lifetime. Once Dispose
  402. is called, any scoped services that have been resolved from
  403. <see cref="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/> will be
  404. disposed.
  405. </summary>
  406. </member>
  407. <member name="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider">
  408. <summary>
  409. The <see cref="T:System.IServiceProvider"/> used to resolve dependencies from the scope.
  410. </summary>
  411. </member>
  412. <member name="T:Microsoft.Extensions.DependencyInjection.IServiceScopeFactory">
  413. <summary>
  414. A factory for creating instances of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/>, which is used to create
  415. services within a scope.
  416. </summary>
  417. </member>
  418. <member name="M:Microsoft.Extensions.DependencyInjection.IServiceScopeFactory.CreateScope">
  419. <summary>
  420. Create an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> which
  421. contains an <see cref="T:System.IServiceProvider"/> used to resolve dependencies from a
  422. newly created scope.
  423. </summary>
  424. <returns>
  425. An <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> controlling the
  426. lifetime of the scope. Once this is disposed, any scoped services that have been resolved
  427. from the <see cref="P:Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider"/>
  428. will also be disposed.
  429. </returns>
  430. </member>
  431. <member name="T:Microsoft.Extensions.DependencyInjection.ISupportRequiredService">
  432. <summary>
  433. Optional contract used by <see cref="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)"/>
  434. to resolve services if supported by <see cref="T:System.IServiceProvider"/>.
  435. </summary>
  436. </member>
  437. <member name="M:Microsoft.Extensions.DependencyInjection.ISupportRequiredService.GetRequiredService(System.Type)">
  438. <summary>
  439. Gets service of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/> implementing
  440. this interface.
  441. </summary>
  442. <param name="serviceType">An object that specifies the type of service object to get.</param>
  443. <returns>A service object of type <paramref name="serviceType"/>.
  444. Throws an exception if the <see cref="T:System.IServiceProvider"/> cannot create the object.</returns>
  445. </member>
  446. <member name="T:Microsoft.Extensions.DependencyInjection.ObjectFactory">
  447. <summary>
  448. The result of <see cref="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])"/>.
  449. </summary>
  450. <param name="serviceProvider">The <see cref="T:System.IServiceProvider"/> to get service arguments from.</param>
  451. <param name="arguments">Additional constructor arguments.</param>
  452. <returns>The instantiated type.</returns>
  453. </member>
  454. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceCollection">
  455. <summary>
  456. Default implementation of <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  457. </summary>
  458. </member>
  459. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceCollection.Count">
  460. <inheritdoc />
  461. </member>
  462. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceCollection.IsReadOnly">
  463. <inheritdoc />
  464. </member>
  465. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceCollection.Item(System.Int32)">
  466. <inheritdoc />
  467. </member>
  468. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.Clear">
  469. <inheritdoc />
  470. </member>
  471. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.Contains(Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  472. <inheritdoc />
  473. </member>
  474. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.CopyTo(Microsoft.Extensions.DependencyInjection.ServiceDescriptor[],System.Int32)">
  475. <inheritdoc />
  476. </member>
  477. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.Remove(Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  478. <inheritdoc />
  479. </member>
  480. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.GetEnumerator">
  481. <inheritdoc />
  482. </member>
  483. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.IndexOf(Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  484. <inheritdoc />
  485. </member>
  486. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.Insert(System.Int32,Microsoft.Extensions.DependencyInjection.ServiceDescriptor)">
  487. <inheritdoc />
  488. </member>
  489. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollection.RemoveAt(System.Int32)">
  490. <inheritdoc />
  491. </member>
  492. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions">
  493. <summary>
  494. Extension methods for adding services to an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
  495. </summary>
  496. </member>
  497. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  498. <summary>
  499. Adds a transient service of the type specified in <paramref name="serviceType"/> with an
  500. implementation of the type specified in <paramref name="implementationType"/> to the
  501. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  502. </summary>
  503. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  504. <param name="serviceType">The type of the service to register.</param>
  505. <param name="implementationType">The implementation type of the service.</param>
  506. <returns>A reference to this instance after the operation has completed.</returns>
  507. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  508. </member>
  509. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  510. <summary>
  511. Adds a transient service of the type specified in <paramref name="serviceType"/> with a
  512. factory specified in <paramref name="implementationFactory"/> to the
  513. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  514. </summary>
  515. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  516. <param name="serviceType">The type of the service to register.</param>
  517. <param name="implementationFactory">The factory that creates the service.</param>
  518. <returns>A reference to this instance after the operation has completed.</returns>
  519. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  520. </member>
  521. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  522. <summary>
  523. Adds a transient service of the type specified in <typeparamref name="TService"/> with an
  524. implementation type specified in <typeparamref name="TImplementation"/> to the
  525. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  526. </summary>
  527. <typeparam name="TService">The type of the service to add.</typeparam>
  528. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  529. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  530. <returns>A reference to this instance after the operation has completed.</returns>
  531. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  532. </member>
  533. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  534. <summary>
  535. Adds a transient service of the type specified in <paramref name="serviceType"/> to the
  536. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  537. </summary>
  538. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  539. <param name="serviceType">The type of the service to register and the implementation to use.</param>
  540. <returns>A reference to this instance after the operation has completed.</returns>
  541. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  542. </member>
  543. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  544. <summary>
  545. Adds a transient service of the type specified in <typeparamref name="TService"/> to the
  546. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  547. </summary>
  548. <typeparam name="TService">The type of the service to add.</typeparam>
  549. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  550. <returns>A reference to this instance after the operation has completed.</returns>
  551. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  552. </member>
  553. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  554. <summary>
  555. Adds a transient service of the type specified in <typeparamref name="TService"/> with a
  556. factory specified in <paramref name="implementationFactory"/> to the
  557. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  558. </summary>
  559. <typeparam name="TService">The type of the service to add.</typeparam>
  560. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  561. <param name="implementationFactory">The factory that creates the service.</param>
  562. <returns>A reference to this instance after the operation has completed.</returns>
  563. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  564. </member>
  565. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
  566. <summary>
  567. Adds a transient service of the type specified in <typeparamref name="TService"/> with an
  568. implementation type specified in <typeparamref name="TImplementation" /> using the
  569. factory specified in <paramref name="implementationFactory"/> to the
  570. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  571. </summary>
  572. <typeparam name="TService">The type of the service to add.</typeparam>
  573. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  574. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  575. <param name="implementationFactory">The factory that creates the service.</param>
  576. <returns>A reference to this instance after the operation has completed.</returns>
  577. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  578. </member>
  579. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  580. <summary>
  581. Adds a scoped service of the type specified in <paramref name="serviceType"/> with an
  582. implementation of the type specified in <paramref name="implementationType"/> to the
  583. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  584. </summary>
  585. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  586. <param name="serviceType">The type of the service to register.</param>
  587. <param name="implementationType">The implementation type of the service.</param>
  588. <returns>A reference to this instance after the operation has completed.</returns>
  589. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  590. </member>
  591. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  592. <summary>
  593. Adds a scoped service of the type specified in <paramref name="serviceType"/> with a
  594. factory specified in <paramref name="implementationFactory"/> to the
  595. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  596. </summary>
  597. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  598. <param name="serviceType">The type of the service to register.</param>
  599. <param name="implementationFactory">The factory that creates the service.</param>
  600. <returns>A reference to this instance after the operation has completed.</returns>
  601. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  602. </member>
  603. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  604. <summary>
  605. Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
  606. implementation type specified in <typeparamref name="TImplementation"/> to the
  607. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  608. </summary>
  609. <typeparam name="TService">The type of the service to add.</typeparam>
  610. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  611. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  612. <returns>A reference to this instance after the operation has completed.</returns>
  613. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  614. </member>
  615. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  616. <summary>
  617. Adds a scoped service of the type specified in <paramref name="serviceType"/> to the
  618. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  619. </summary>
  620. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  621. <param name="serviceType">The type of the service to register and the implementation to use.</param>
  622. <returns>A reference to this instance after the operation has completed.</returns>
  623. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  624. </member>
  625. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  626. <summary>
  627. Adds a scoped service of the type specified in <typeparamref name="TService"/> to the
  628. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  629. </summary>
  630. <typeparam name="TService">The type of the service to add.</typeparam>
  631. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  632. <returns>A reference to this instance after the operation has completed.</returns>
  633. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  634. </member>
  635. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  636. <summary>
  637. Adds a scoped service of the type specified in <typeparamref name="TService"/> with a
  638. factory specified in <paramref name="implementationFactory"/> to the
  639. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  640. </summary>
  641. <typeparam name="TService">The type of the service to add.</typeparam>
  642. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  643. <param name="implementationFactory">The factory that creates the service.</param>
  644. <returns>A reference to this instance after the operation has completed.</returns>
  645. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  646. </member>
  647. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
  648. <summary>
  649. Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
  650. implementation type specified in <typeparamref name="TImplementation" /> using the
  651. factory specified in <paramref name="implementationFactory"/> to the
  652. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  653. </summary>
  654. <typeparam name="TService">The type of the service to add.</typeparam>
  655. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  656. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  657. <param name="implementationFactory">The factory that creates the service.</param>
  658. <returns>A reference to this instance after the operation has completed.</returns>
  659. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  660. </member>
  661. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  662. <summary>
  663. Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
  664. implementation of the type specified in <paramref name="implementationType"/> to the
  665. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  666. </summary>
  667. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  668. <param name="serviceType">The type of the service to register.</param>
  669. <param name="implementationType">The implementation type of the service.</param>
  670. <returns>A reference to this instance after the operation has completed.</returns>
  671. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  672. </member>
  673. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  674. <summary>
  675. Adds a singleton service of the type specified in <paramref name="serviceType"/> with a
  676. factory specified in <paramref name="implementationFactory"/> to the
  677. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  678. </summary>
  679. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  680. <param name="serviceType">The type of the service to register.</param>
  681. <param name="implementationFactory">The factory that creates the service.</param>
  682. <returns>A reference to this instance after the operation has completed.</returns>
  683. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  684. </member>
  685. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  686. <summary>
  687. Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
  688. implementation type specified in <typeparamref name="TImplementation"/> to the
  689. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  690. </summary>
  691. <typeparam name="TService">The type of the service to add.</typeparam>
  692. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  693. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  694. <returns>A reference to this instance after the operation has completed.</returns>
  695. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  696. </member>
  697. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  698. <summary>
  699. Adds a singleton service of the type specified in <paramref name="serviceType"/> to the
  700. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  701. </summary>
  702. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  703. <param name="serviceType">The type of the service to register and the implementation to use.</param>
  704. <returns>A reference to this instance after the operation has completed.</returns>
  705. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  706. </member>
  707. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  708. <summary>
  709. Adds a singleton service of the type specified in <typeparamref name="TService"/> to the
  710. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  711. </summary>
  712. <typeparam name="TService">The type of the service to add.</typeparam>
  713. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  714. <returns>A reference to this instance after the operation has completed.</returns>
  715. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  716. </member>
  717. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  718. <summary>
  719. Adds a singleton service of the type specified in <typeparamref name="TService"/> with a
  720. factory specified in <paramref name="implementationFactory"/> to the
  721. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  722. </summary>
  723. <typeparam name="TService">The type of the service to add.</typeparam>
  724. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  725. <param name="implementationFactory">The factory that creates the service.</param>
  726. <returns>A reference to this instance after the operation has completed.</returns>
  727. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  728. </member>
  729. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
  730. <summary>
  731. Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
  732. implementation type specified in <typeparamref name="TImplementation" /> using the
  733. factory specified in <paramref name="implementationFactory"/> to the
  734. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  735. </summary>
  736. <typeparam name="TService">The type of the service to add.</typeparam>
  737. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  738. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  739. <param name="implementationFactory">The factory that creates the service.</param>
  740. <returns>A reference to this instance after the operation has completed.</returns>
  741. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  742. </member>
  743. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Object)">
  744. <summary>
  745. Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
  746. instance specified in <paramref name="implementationInstance"/> to the
  747. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  748. </summary>
  749. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  750. <param name="serviceType">The type of the service to register.</param>
  751. <param name="implementationInstance">The instance of the service.</param>
  752. <returns>A reference to this instance after the operation has completed.</returns>
  753. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  754. </member>
  755. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,``0)">
  756. <summary>
  757. Adds a singleton service of the type specified in <typeparamref name="TService" /> with an
  758. instance specified in <paramref name="implementationInstance"/> to the
  759. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  760. </summary>
  761. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  762. <param name="implementationInstance">The instance of the service.</param>
  763. <returns>A reference to this instance after the operation has completed.</returns>
  764. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  765. </member>
  766. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor">
  767. <summary>
  768. Describes a service with its service type, implementation, and lifetime.
  769. </summary>
  770. </member>
  771. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Type,Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  772. <summary>
  773. Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="implementationType"/>.
  774. </summary>
  775. <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
  776. <param name="implementationType">The <see cref="T:System.Type"/> implementing the service.</param>
  777. <param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
  778. </member>
  779. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Object)">
  780. <summary>
  781. Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="instance"/>
  782. as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>.
  783. </summary>
  784. <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
  785. <param name="instance">The instance implementing the service.</param>
  786. </member>
  787. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Func{System.IServiceProvider,System.Object},Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  788. <summary>
  789. Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="factory"/>.
  790. </summary>
  791. <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
  792. <param name="factory">A factory used for creating service instances.</param>
  793. <param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
  794. </member>
  795. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ToString">
  796. <inheritdoc />
  797. </member>
  798. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``2">
  799. <summary>
  800. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  801. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  802. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  803. </summary>
  804. <typeparam name="TService">The type of the service.</typeparam>
  805. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  806. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  807. </member>
  808. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient(System.Type,System.Type)">
  809. <summary>
  810. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  811. <paramref name="service"/> and <paramref name="implementationType"/>
  812. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  813. </summary>
  814. <param name="service">The type of the service.</param>
  815. <param name="implementationType">The type of the implementation.</param>
  816. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  817. </member>
  818. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``2(System.Func{System.IServiceProvider,``1})">
  819. <summary>
  820. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  821. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  822. <paramref name="implementationFactory"/>,
  823. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  824. </summary>
  825. <typeparam name="TService">The type of the service.</typeparam>
  826. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  827. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  828. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  829. </member>
  830. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``1(System.Func{System.IServiceProvider,``0})">
  831. <summary>
  832. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  833. <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
  834. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  835. </summary>
  836. <typeparam name="TService">The type of the service.</typeparam>
  837. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  838. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  839. </member>
  840. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient(System.Type,System.Func{System.IServiceProvider,System.Object})">
  841. <summary>
  842. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  843. <paramref name="service"/>, <paramref name="implementationFactory"/>,
  844. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  845. </summary>
  846. <param name="service">The type of the service.</param>
  847. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  848. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  849. </member>
  850. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``2">
  851. <summary>
  852. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  853. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  854. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  855. </summary>
  856. <typeparam name="TService">The type of the service.</typeparam>
  857. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  858. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  859. </member>
  860. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped(System.Type,System.Type)">
  861. <summary>
  862. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  863. <paramref name="service"/> and <paramref name="implementationType"/>
  864. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  865. </summary>
  866. <param name="service">The type of the service.</param>
  867. <param name="implementationType">The type of the implementation.</param>
  868. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  869. </member>
  870. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``2(System.Func{System.IServiceProvider,``1})">
  871. <summary>
  872. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  873. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  874. <paramref name="implementationFactory"/>,
  875. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  876. </summary>
  877. <typeparam name="TService">The type of the service.</typeparam>
  878. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  879. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  880. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  881. </member>
  882. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``1(System.Func{System.IServiceProvider,``0})">
  883. <summary>
  884. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  885. <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
  886. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  887. </summary>
  888. <typeparam name="TService">The type of the service.</typeparam>
  889. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  890. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  891. </member>
  892. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped(System.Type,System.Func{System.IServiceProvider,System.Object})">
  893. <summary>
  894. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  895. <paramref name="service"/>, <paramref name="implementationFactory"/>,
  896. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  897. </summary>
  898. <param name="service">The type of the service.</param>
  899. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  900. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  901. </member>
  902. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``2">
  903. <summary>
  904. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  905. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  906. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  907. </summary>
  908. <typeparam name="TService">The type of the service.</typeparam>
  909. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  910. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  911. </member>
  912. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Type)">
  913. <summary>
  914. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  915. <paramref name="service"/> and <paramref name="implementationType"/>
  916. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  917. </summary>
  918. <param name="service">The type of the service.</param>
  919. <param name="implementationType">The type of the implementation.</param>
  920. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  921. </member>
  922. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``2(System.Func{System.IServiceProvider,``1})">
  923. <summary>
  924. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  925. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  926. <paramref name="implementationFactory"/>,
  927. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  928. </summary>
  929. <typeparam name="TService">The type of the service.</typeparam>
  930. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  931. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  932. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  933. </member>
  934. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``1(System.Func{System.IServiceProvider,``0})">
  935. <summary>
  936. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  937. <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
  938. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  939. </summary>
  940. <typeparam name="TService">The type of the service.</typeparam>
  941. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  942. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  943. </member>
  944. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Func{System.IServiceProvider,System.Object})">
  945. <summary>
  946. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  947. <paramref name="serviceType"/>, <paramref name="implementationFactory"/>,
  948. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  949. </summary>
  950. <param name="serviceType">The type of the service.</param>
  951. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  952. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  953. </member>
  954. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``1(``0)">
  955. <summary>
  956. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  957. <typeparamref name="TService"/>, <paramref name="implementationInstance"/>,
  958. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  959. </summary>
  960. <typeparam name="TService">The type of the service.</typeparam>
  961. <param name="implementationInstance">The instance of the implementation.</param>
  962. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  963. </member>
  964. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Object)">
  965. <summary>
  966. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  967. <paramref name="serviceType"/>, <paramref name="implementationInstance"/>,
  968. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  969. </summary>
  970. <param name="serviceType">The type of the service.</param>
  971. <param name="implementationInstance">The instance of the implementation.</param>
  972. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  973. </member>
  974. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(System.Type,System.Type,Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  975. <summary>
  976. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  977. <paramref name="serviceType"/>, <paramref name="implementationType"/>,
  978. and <paramref name="lifetime"/>.
  979. </summary>
  980. <param name="serviceType">The type of the service.</param>
  981. <param name="implementationType">The type of the implementation.</param>
  982. <param name="lifetime">The lifetime of the service.</param>
  983. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  984. </member>
  985. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(System.Type,System.Func{System.IServiceProvider,System.Object},Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  986. <summary>
  987. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  988. <paramref name="serviceType"/>, <paramref name="implementationFactory"/>,
  989. and <paramref name="lifetime"/>.
  990. </summary>
  991. <param name="serviceType">The type of the service.</param>
  992. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  993. <param name="lifetime">The lifetime of the service.</param>
  994. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  995. </member>
  996. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime">
  997. <summary>
  998. Specifies the lifetime of a service in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  999. </summary>
  1000. </member>
  1001. <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton">
  1002. <summary>
  1003. Specifies that a single instance of the service will be created.
  1004. </summary>
  1005. </member>
  1006. <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped">
  1007. <summary>
  1008. Specifies that a new instance of the service will be created for each scope.
  1009. </summary>
  1010. <remarks>
  1011. In ASP.NET Core applications a scope is created around each server request.
  1012. </remarks>
  1013. </member>
  1014. <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient">
  1015. <summary>
  1016. Specifies that a new instance of the service will be created every time it is requested.
  1017. </summary>
  1018. </member>
  1019. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions">
  1020. <summary>
  1021. Extension methods for getting services from an <see cref="T:System.IServiceProvider" />.
  1022. </summary>
  1023. </member>
  1024. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService``1(System.IServiceProvider)">
  1025. <summary>
  1026. Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
  1027. </summary>
  1028. <typeparam name="T">The type of service object to get.</typeparam>
  1029. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
  1030. <returns>A service object of type <typeparamref name="T"/> or null if there is no such service.</returns>
  1031. </member>
  1032. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(System.IServiceProvider,System.Type)">
  1033. <summary>
  1034. Get service of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
  1035. </summary>
  1036. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
  1037. <param name="serviceType">An object that specifies the type of service object to get.</param>
  1038. <returns>A service object of type <paramref name="serviceType"/>.</returns>
  1039. <exception cref="T:System.InvalidOperationException">There is no service of type <paramref name="serviceType"/>.</exception>
  1040. </member>
  1041. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)">
  1042. <summary>
  1043. Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
  1044. </summary>
  1045. <typeparam name="T">The type of service object to get.</typeparam>
  1046. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
  1047. <returns>A service object of type <typeparamref name="T"/>.</returns>
  1048. <exception cref="T:System.InvalidOperationException">There is no service of type <typeparamref name="T"/>.</exception>
  1049. </member>
  1050. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices``1(System.IServiceProvider)">
  1051. <summary>
  1052. Get an enumeration of services of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
  1053. </summary>
  1054. <typeparam name="T">The type of service object to get.</typeparam>
  1055. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
  1056. <returns>An enumeration of services of type <typeparamref name="T"/>.</returns>
  1057. </member>
  1058. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices(System.IServiceProvider,System.Type)">
  1059. <summary>
  1060. Get an enumeration of services of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
  1061. </summary>
  1062. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
  1063. <param name="serviceType">An object that specifies the type of service object to get.</param>
  1064. <returns>An enumeration of services of type <paramref name="serviceType"/>.</returns>
  1065. </member>
  1066. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.CreateScope(System.IServiceProvider)">
  1067. <summary>
  1068. Creates a new <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.
  1069. </summary>
  1070. <param name="provider">The <see cref="T:System.IServiceProvider"/> to create the scope from.</param>
  1071. <returns>A <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.</returns>
  1072. </member>
  1073. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.CreateAsyncScope(System.IServiceProvider)">
  1074. <summary>
  1075. Creates a new <see cref="T:Microsoft.Extensions.DependencyInjection.AsyncServiceScope"/> that can be used to resolve scoped services.
  1076. </summary>
  1077. <param name="provider">The <see cref="T:System.IServiceProvider"/> to create the scope from.</param>
  1078. <returns>An <see cref="T:Microsoft.Extensions.DependencyInjection.AsyncServiceScope"/> that can be used to resolve scoped services.</returns>
  1079. </member>
  1080. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.CreateAsyncScope(Microsoft.Extensions.DependencyInjection.IServiceScopeFactory)">
  1081. <summary>
  1082. Creates a new <see cref="T:Microsoft.Extensions.DependencyInjection.AsyncServiceScope"/> that can be used to resolve scoped services.
  1083. </summary>
  1084. <param name="serviceScopeFactory">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScopeFactory"/> to create the scope from.</param>
  1085. <returns>An <see cref="T:Microsoft.Extensions.DependencyInjection.AsyncServiceScope"/> that can be used to resolve scoped services.</returns>
  1086. </member>
  1087. <member name="P:System.SR.AmbiguousConstructorMatch">
  1088. <summary>Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.</summary>
  1089. </member>
  1090. <member name="P:System.SR.CannotLocateImplementation">
  1091. <summary>Unable to locate implementation '{0}' for service '{1}'.</summary>
  1092. </member>
  1093. <member name="P:System.SR.CannotResolveService">
  1094. <summary>Unable to resolve service for type '{0}' while attempting to activate '{1}'.</summary>
  1095. </member>
  1096. <member name="P:System.SR.NoConstructorMatch">
  1097. <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>
  1098. </member>
  1099. <member name="P:System.SR.NoServiceRegistered">
  1100. <summary>No service for type '{0}' has been registered.</summary>
  1101. </member>
  1102. <member name="P:System.SR.TryAddIndistinguishableTypeToEnumerable">
  1103. <summary>Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.</summary>
  1104. </member>
  1105. </members>
  1106. </doc>