Microsoft.Extensions.DependencyInjection.Abstractions.xml 86 KB

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