Microsoft.Extensions.DependencyInjection.Abstractions.xml 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  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 registing 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 registing 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 <paramef 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></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 <typeparamef 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></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 <paramef 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></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="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.AmbiguousConstructorMatch">
  356. <summary>
  357. Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.
  358. </summary>
  359. </member>
  360. <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatAmbiguousConstructorMatch(System.Object)">
  361. <summary>
  362. Multiple constructors accepting all given argument types have been found in type '{0}'. There should only be one applicable constructor.
  363. </summary>
  364. </member>
  365. <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.CannotLocateImplementation">
  366. <summary>
  367. Unable to locate implementation '{0}' for service '{1}'.
  368. </summary>
  369. </member>
  370. <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatCannotLocateImplementation(System.Object,System.Object)">
  371. <summary>
  372. Unable to locate implementation '{0}' for service '{1}'.
  373. </summary>
  374. </member>
  375. <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.CannotResolveService">
  376. <summary>
  377. Unable to resolve service for type '{0}' while attempting to activate '{1}'.
  378. </summary>
  379. </member>
  380. <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatCannotResolveService(System.Object,System.Object)">
  381. <summary>
  382. Unable to resolve service for type '{0}' while attempting to activate '{1}'.
  383. </summary>
  384. </member>
  385. <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.NoConstructorMatch">
  386. <summary>
  387. 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.
  388. </summary>
  389. </member>
  390. <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatNoConstructorMatch(System.Object)">
  391. <summary>
  392. 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.
  393. </summary>
  394. </member>
  395. <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.NoServiceRegistered">
  396. <summary>
  397. No service for type '{0}' has been registered.
  398. </summary>
  399. </member>
  400. <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatNoServiceRegistered(System.Object)">
  401. <summary>
  402. No service for type '{0}' has been registered.
  403. </summary>
  404. </member>
  405. <member name="P:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.TryAddIndistinguishableTypeToEnumerable">
  406. <summary>
  407. Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.
  408. </summary>
  409. </member>
  410. <member name="M:Microsoft.Extensions.DependencyInjection.Abstractions.Resources.FormatTryAddIndistinguishableTypeToEnumerable(System.Object,System.Object)">
  411. <summary>
  412. Implementation type cannot be '{0}' because it is indistinguishable from other services registered for '{1}'.
  413. </summary>
  414. </member>
  415. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions">
  416. <summary>
  417. Extension methods for adding services to an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.
  418. </summary>
  419. </member>
  420. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  421. <summary>
  422. Adds a transient service of the type specified in <paramref name="serviceType"/> with an
  423. implementation of the type specified in <paramref name="implementationType"/> to the
  424. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  425. </summary>
  426. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  427. <param name="serviceType">The type of the service to register.</param>
  428. <param name="implementationType">The implementation type of the service.</param>
  429. <returns>A reference to this instance after the operation has completed.</returns>
  430. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  431. </member>
  432. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  433. <summary>
  434. Adds a transient service of the type specified in <paramref name="serviceType"/> with a
  435. factory specified in <paramref name="implementationFactory"/> to the
  436. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  437. </summary>
  438. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  439. <param name="serviceType">The type of the service to register.</param>
  440. <param name="implementationFactory">The factory that creates the service.</param>
  441. <returns>A reference to this instance after the operation has completed.</returns>
  442. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  443. </member>
  444. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  445. <summary>
  446. Adds a transient service of the type specified in <typeparamref name="TService"/> with an
  447. implementation type specified in <typeparamref name="TImplementation"/> to the
  448. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  449. </summary>
  450. <typeparam name="TService">The type of the service to add.</typeparam>
  451. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  452. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  453. <returns>A reference to this instance after the operation has completed.</returns>
  454. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  455. </member>
  456. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  457. <summary>
  458. Adds a transient service of the type specified in <paramref name="serviceType"/> to the
  459. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  460. </summary>
  461. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  462. <param name="serviceType">The type of the service to register and the implementation to use.</param>
  463. <returns>A reference to this instance after the operation has completed.</returns>
  464. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  465. </member>
  466. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  467. <summary>
  468. Adds a transient service of the type specified in <typeparamref name="TService"/> to the
  469. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  470. </summary>
  471. <typeparam name="TService">The type of the service to add.</typeparam>
  472. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  473. <returns>A reference to this instance after the operation has completed.</returns>
  474. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  475. </member>
  476. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  477. <summary>
  478. Adds a transient service of the type specified in <typeparamref name="TService"/> with a
  479. factory specified in <paramref name="implementationFactory"/> to the
  480. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  481. </summary>
  482. <typeparam name="TService">The type of the service to add.</typeparam>
  483. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  484. <param name="implementationFactory">The factory that creates the service.</param>
  485. <returns>A reference to this instance after the operation has completed.</returns>
  486. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  487. </member>
  488. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddTransient``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
  489. <summary>
  490. Adds a transient service of the type specified in <typeparamref name="TService"/> with an
  491. implementation type specified in <typeparamref name="TImplementation" /> using the
  492. factory specified in <paramref name="implementationFactory"/> to the
  493. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  494. </summary>
  495. <typeparam name="TService">The type of the service to add.</typeparam>
  496. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  497. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  498. <param name="implementationFactory">The factory that creates the service.</param>
  499. <returns>A reference to this instance after the operation has completed.</returns>
  500. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/>
  501. </member>
  502. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  503. <summary>
  504. Adds a scoped service of the type specified in <paramref name="serviceType"/> with an
  505. implementation of the type specified in <paramref name="implementationType"/> to the
  506. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  507. </summary>
  508. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  509. <param name="serviceType">The type of the service to register.</param>
  510. <param name="implementationType">The implementation type of the service.</param>
  511. <returns>A reference to this instance after the operation has completed.</returns>
  512. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  513. </member>
  514. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  515. <summary>
  516. Adds a scoped service of the type specified in <paramref name="serviceType"/> with a
  517. factory specified in <paramref name="implementationFactory"/> to the
  518. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  519. </summary>
  520. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  521. <param name="serviceType">The type of the service to register.</param>
  522. <param name="implementationFactory">The factory that creates the service.</param>
  523. <returns>A reference to this instance after the operation has completed.</returns>
  524. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  525. </member>
  526. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  527. <summary>
  528. Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
  529. implementation type specified in <typeparamref name="TImplementation"/> to the
  530. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  531. </summary>
  532. <typeparam name="TService">The type of the service to add.</typeparam>
  533. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  534. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  535. <returns>A reference to this instance after the operation has completed.</returns>
  536. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  537. </member>
  538. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  539. <summary>
  540. Adds a scoped service of the type specified in <paramref name="serviceType"/> to the
  541. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  542. </summary>
  543. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  544. <param name="serviceType">The type of the service to register and the implementation to use.</param>
  545. <returns>A reference to this instance after the operation has completed.</returns>
  546. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  547. </member>
  548. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  549. <summary>
  550. Adds a scoped service of the type specified in <typeparamref name="TService"/> to the
  551. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  552. </summary>
  553. <typeparam name="TService">The type of the service to add.</typeparam>
  554. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  555. <returns>A reference to this instance after the operation has completed.</returns>
  556. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  557. </member>
  558. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  559. <summary>
  560. Adds a scoped service of the type specified in <typeparamref name="TService"/> with a
  561. factory specified in <paramref name="implementationFactory"/> to the
  562. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  563. </summary>
  564. <typeparam name="TService">The type of the service to add.</typeparam>
  565. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  566. <param name="implementationFactory">The factory that creates the service.</param>
  567. <returns>A reference to this instance after the operation has completed.</returns>
  568. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  569. </member>
  570. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddScoped``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
  571. <summary>
  572. Adds a scoped service of the type specified in <typeparamref name="TService"/> with an
  573. implementation type specified in <typeparamref name="TImplementation" /> using the
  574. factory specified in <paramref name="implementationFactory"/> to the
  575. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  576. </summary>
  577. <typeparam name="TService">The type of the service to add.</typeparam>
  578. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  579. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  580. <param name="implementationFactory">The factory that creates the service.</param>
  581. <returns>A reference to this instance after the operation has completed.</returns>
  582. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/>
  583. </member>
  584. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)">
  585. <summary>
  586. Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
  587. implementation of the type specified in <paramref name="implementationType"/> to the
  588. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  589. </summary>
  590. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  591. <param name="serviceType">The type of the service to register.</param>
  592. <param name="implementationType">The implementation type of the service.</param>
  593. <returns>A reference to this instance after the operation has completed.</returns>
  594. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  595. </member>
  596. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Func{System.IServiceProvider,System.Object})">
  597. <summary>
  598. Adds a singleton service of the type specified in <paramref name="serviceType"/> with a
  599. factory specified in <paramref name="implementationFactory"/> to the
  600. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  601. </summary>
  602. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  603. <param name="serviceType">The type of the service to register.</param>
  604. <param name="implementationFactory">The factory that creates the service.</param>
  605. <returns>A reference to this instance after the operation has completed.</returns>
  606. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  607. </member>
  608. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  609. <summary>
  610. Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
  611. implementation type specified in <typeparamref name="TImplementation"/> to the
  612. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  613. </summary>
  614. <typeparam name="TService">The type of the service to add.</typeparam>
  615. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  616. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  617. <returns>A reference to this instance after the operation has completed.</returns>
  618. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  619. </member>
  620. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type)">
  621. <summary>
  622. Adds a singleton service of the type specified in <paramref name="serviceType"/> to the
  623. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  624. </summary>
  625. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  626. <param name="serviceType">The type of the service to register and the implementation to use.</param>
  627. <returns>A reference to this instance after the operation has completed.</returns>
  628. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  629. </member>
  630. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
  631. <summary>
  632. Adds a singleton service of the type specified in <typeparamref name="TService"/> to the
  633. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  634. </summary>
  635. <typeparam name="TService">The type of the service to add.</typeparam>
  636. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  637. <returns>A reference to this instance after the operation has completed.</returns>
  638. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  639. </member>
  640. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``0})">
  641. <summary>
  642. Adds a singleton service of the type specified in <typeparamref name="TService"/> with a
  643. factory specified in <paramref name="implementationFactory"/> to the
  644. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  645. </summary>
  646. <typeparam name="TService">The type of the service to add.</typeparam>
  647. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  648. <param name="implementationFactory">The factory that creates the service.</param>
  649. <returns>A reference to this instance after the operation has completed.</returns>
  650. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  651. </member>
  652. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``2(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Func{System.IServiceProvider,``1})">
  653. <summary>
  654. Adds a singleton service of the type specified in <typeparamref name="TService"/> with an
  655. implementation type specified in <typeparamref name="TImplementation" /> using the
  656. factory specified in <paramref name="implementationFactory"/> to the
  657. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  658. </summary>
  659. <typeparam name="TService">The type of the service to add.</typeparam>
  660. <typeparam name="TImplementation">The type of the implementation to use.</typeparam>
  661. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  662. <param name="implementationFactory">The factory that creates the service.</param>
  663. <returns>A reference to this instance after the operation has completed.</returns>
  664. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  665. </member>
  666. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Object)">
  667. <summary>
  668. Adds a singleton service of the type specified in <paramref name="serviceType"/> with an
  669. instance specified in <paramref name="implementationInstance"/> to the
  670. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  671. </summary>
  672. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  673. <param name="serviceType">The type of the service to register.</param>
  674. <param name="implementationInstance">The instance of the service.</param>
  675. <returns>A reference to this instance after the operation has completed.</returns>
  676. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  677. </member>
  678. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton``1(Microsoft.Extensions.DependencyInjection.IServiceCollection,``0)">
  679. <summary>
  680. Adds a singleton service of the type specified in <typeparamref name="TService" /> with an
  681. instance specified in <paramref name="implementationInstance"/> to the
  682. specified <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  683. </summary>
  684. <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/> to add the service to.</param>
  685. <param name="implementationInstance">The instance of the service.</param>
  686. <returns>A reference to this instance after the operation has completed.</returns>
  687. <seealso cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>
  688. </member>
  689. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor">
  690. <summary>
  691. Describes a service with its service type, implementation, and lifetime.
  692. </summary>
  693. </member>
  694. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Type,Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  695. <summary>
  696. Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="implementationType"/>.
  697. </summary>
  698. <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
  699. <param name="implementationType">The <see cref="T:System.Type"/> implementing the service.</param>
  700. <param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
  701. </member>
  702. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Object)">
  703. <summary>
  704. Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="instance"/>
  705. as a <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/>.
  706. </summary>
  707. <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
  708. <param name="instance">The instance implementing the service.</param>
  709. </member>
  710. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.#ctor(System.Type,System.Func{System.IServiceProvider,System.Object},Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  711. <summary>
  712. Initializes a new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified <paramref name="factory"/>.
  713. </summary>
  714. <param name="serviceType">The <see cref="T:System.Type"/> of the service.</param>
  715. <param name="factory">A factory used for creating service instances.</param>
  716. <param name="lifetime">The <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime"/> of the service.</param>
  717. </member>
  718. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Lifetime">
  719. <inheritdoc />
  720. </member>
  721. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ServiceType">
  722. <inheritdoc />
  723. </member>
  724. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationType">
  725. <inheritdoc />
  726. </member>
  727. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationInstance">
  728. <inheritdoc />
  729. </member>
  730. <member name="P:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ImplementationFactory">
  731. <inheritdoc />
  732. </member>
  733. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``2">
  734. <summary>
  735. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  736. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  737. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  738. </summary>
  739. <typeparam name="TService">The type of the service.</typeparam>
  740. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  741. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  742. </member>
  743. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient(System.Type,System.Type)">
  744. <summary>
  745. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  746. <paramref name="service"/> and <paramref name="implementationType"/>
  747. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  748. </summary>
  749. <param name="service">The type of the service.</param>
  750. <param name="implementationType">The type of the implementation.</param>
  751. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  752. </member>
  753. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``2(System.Func{System.IServiceProvider,``1})">
  754. <summary>
  755. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  756. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  757. <paramref name="implementationFactory"/>,
  758. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  759. </summary>
  760. <typeparam name="TService">The type of the service.</typeparam>
  761. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  762. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  763. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  764. </member>
  765. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient``1(System.Func{System.IServiceProvider,``0})">
  766. <summary>
  767. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  768. <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
  769. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  770. </summary>
  771. <typeparam name="TService">The type of the service.</typeparam>
  772. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  773. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  774. </member>
  775. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Transient(System.Type,System.Func{System.IServiceProvider,System.Object})">
  776. <summary>
  777. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  778. <paramref name="service"/>, <paramref name="implementationFactory"/>,
  779. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient"/> lifetime.
  780. </summary>
  781. <param name="service">The type of the service.</param>
  782. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  783. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  784. </member>
  785. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``2">
  786. <summary>
  787. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  788. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  789. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  790. </summary>
  791. <typeparam name="TService">The type of the service.</typeparam>
  792. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  793. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  794. </member>
  795. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped(System.Type,System.Type)">
  796. <summary>
  797. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  798. <paramref name="service"/> and <paramref name="implementationType"/>
  799. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  800. </summary>
  801. <param name="service">The type of the service.</param>
  802. <param name="implementationType">The type of the implementation.</param>
  803. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  804. </member>
  805. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``2(System.Func{System.IServiceProvider,``1})">
  806. <summary>
  807. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  808. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  809. <paramref name="implementationFactory"/>,
  810. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  811. </summary>
  812. <typeparam name="TService">The type of the service.</typeparam>
  813. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  814. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  815. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  816. </member>
  817. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped``1(System.Func{System.IServiceProvider,``0})">
  818. <summary>
  819. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  820. <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
  821. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  822. </summary>
  823. <typeparam name="TService">The type of the service.</typeparam>
  824. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  825. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  826. </member>
  827. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Scoped(System.Type,System.Func{System.IServiceProvider,System.Object})">
  828. <summary>
  829. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  830. <paramref name="service"/>, <paramref name="implementationFactory"/>,
  831. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  832. </summary>
  833. <param name="service">The type of the service.</param>
  834. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  835. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  836. </member>
  837. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``2">
  838. <summary>
  839. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  840. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  841. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  842. </summary>
  843. <typeparam name="TService">The type of the service.</typeparam>
  844. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  845. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  846. </member>
  847. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Type)">
  848. <summary>
  849. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  850. <paramref name="service"/> and <paramref name="implementationType"/>
  851. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  852. </summary>
  853. <param name="service">The type of the service.</param>
  854. <param name="implementationType">The type of the implementation.</param>
  855. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  856. </member>
  857. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``2(System.Func{System.IServiceProvider,``1})">
  858. <summary>
  859. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  860. <typeparamref name="TService"/>, <typeparamref name="TImplementation"/>,
  861. <paramref name="implementationFactory"/>,
  862. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  863. </summary>
  864. <typeparam name="TService">The type of the service.</typeparam>
  865. <typeparam name="TImplementation">The type of the implementation.</typeparam>
  866. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  867. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  868. </member>
  869. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``1(System.Func{System.IServiceProvider,``0})">
  870. <summary>
  871. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  872. <typeparamref name="TService"/>, <paramref name="implementationFactory"/>,
  873. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  874. </summary>
  875. <typeparam name="TService">The type of the service.</typeparam>
  876. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  877. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  878. </member>
  879. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Func{System.IServiceProvider,System.Object})">
  880. <summary>
  881. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  882. <paramref name="serviceType"/>, <paramref name="implementationFactory"/>,
  883. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton"/> lifetime.
  884. </summary>
  885. <param name="serviceType">The type of the service.</param>
  886. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  887. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  888. </member>
  889. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton``1(``0)">
  890. <summary>
  891. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  892. <typeparamref name="TService"/>, <paramref name="implementationInstance"/>,
  893. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  894. </summary>
  895. <typeparam name="TService">The type of the service.</typeparam>
  896. <param name="implementationInstance">The instance of the implementation.</param>
  897. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  898. </member>
  899. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(System.Type,System.Object)">
  900. <summary>
  901. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  902. <paramref name="serviceType"/>, <paramref name="implementationInstance"/>,
  903. and the <see cref="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped"/> lifetime.
  904. </summary>
  905. <param name="serviceType">The type of the service.</param>
  906. <param name="implementationInstance">The instance of the implementation.</param>
  907. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  908. </member>
  909. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(System.Type,System.Type,Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  910. <summary>
  911. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  912. <paramref name="serviceType"/>, <paramref name="implementationType"/>,
  913. and <paramref name="lifetime"/>.
  914. </summary>
  915. <param name="serviceType">The type of the service.</param>
  916. <param name="implementationType">The type of the implementation.</param>
  917. <param name="lifetime">The lifetime of the service.</param>
  918. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  919. </member>
  920. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(System.Type,System.Func{System.IServiceProvider,System.Object},Microsoft.Extensions.DependencyInjection.ServiceLifetime)">
  921. <summary>
  922. Creates an instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/> with the specified
  923. <paramref name="serviceType"/>, <paramref name="implementationFactory"/>,
  924. and <paramref name="lifetime"/>.
  925. </summary>
  926. <param name="serviceType">The type of the service.</param>
  927. <param name="implementationFactory">A factory to create new instances of the service implementation.</param>
  928. <param name="lifetime">The lifetime of the service.</param>
  929. <returns>A new instance of <see cref="T:Microsoft.Extensions.DependencyInjection.ServiceDescriptor"/>.</returns>
  930. </member>
  931. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceLifetime">
  932. <summary>
  933. Specifies the lifetime of a service in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection"/>.
  934. </summary>
  935. </member>
  936. <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton">
  937. <summary>
  938. Specifies that a single instance of the service will be created.
  939. </summary>
  940. </member>
  941. <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Scoped">
  942. <summary>
  943. Specifies that a new instance of the service will be created for each scope.
  944. </summary>
  945. <remarks>
  946. In ASP.NET Core applications a scope is created around each server request.
  947. </remarks>
  948. </member>
  949. <member name="F:Microsoft.Extensions.DependencyInjection.ServiceLifetime.Transient">
  950. <summary>
  951. Specifies that a new instance of the service will be created every time it is requested.
  952. </summary>
  953. </member>
  954. <member name="T:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions">
  955. <summary>
  956. Extension methods for getting services from an <see cref="T:System.IServiceProvider" />.
  957. </summary>
  958. </member>
  959. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService``1(System.IServiceProvider)">
  960. <summary>
  961. Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
  962. </summary>
  963. <typeparam name="T">The type of service object to get.</typeparam>
  964. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
  965. <returns>A service object of type <typeparamref name="T"/> or null if there is no such service.</returns>
  966. </member>
  967. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(System.IServiceProvider,System.Type)">
  968. <summary>
  969. Get service of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
  970. </summary>
  971. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
  972. <param name="serviceType">An object that specifies the type of service object to get.</param>
  973. <returns>A service object of type <paramref name="serviceType"/>.</returns>
  974. <exception cref="T:System.InvalidOperationException">There is no service of type <paramref name="serviceType"/>.</exception>
  975. </member>
  976. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService``1(System.IServiceProvider)">
  977. <summary>
  978. Get service of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
  979. </summary>
  980. <typeparam name="T">The type of service object to get.</typeparam>
  981. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the service object from.</param>
  982. <returns>A service object of type <typeparamref name="T"/>.</returns>
  983. <exception cref="T:System.InvalidOperationException">There is no service of type <typeparamref name="T"/>.</exception>
  984. </member>
  985. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices``1(System.IServiceProvider)">
  986. <summary>
  987. Get an enumeration of services of type <typeparamref name="T"/> from the <see cref="T:System.IServiceProvider"/>.
  988. </summary>
  989. <typeparam name="T">The type of service object to get.</typeparam>
  990. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
  991. <returns>An enumeration of services of type <typeparamref name="T"/>.</returns>
  992. </member>
  993. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices(System.IServiceProvider,System.Type)">
  994. <summary>
  995. Get an enumeration of services of type <paramref name="serviceType"/> from the <see cref="T:System.IServiceProvider"/>.
  996. </summary>
  997. <param name="provider">The <see cref="T:System.IServiceProvider"/> to retrieve the services from.</param>
  998. <param name="serviceType">An object that specifies the type of service object to get.</param>
  999. <returns>An enumeration of services of type <paramref name="serviceType"/>.</returns>
  1000. </member>
  1001. <member name="M:Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.CreateScope(System.IServiceProvider)">
  1002. <summary>
  1003. Creates a new <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.
  1004. </summary>
  1005. <param name="provider">The <see cref="T:System.IServiceProvider"/> to create the scope from.</param>
  1006. <returns>A <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceScope"/> that can be used to resolve scoped services.</returns>
  1007. </member>
  1008. <member name="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilities">
  1009. <summary>
  1010. Helper code for the various activator services.
  1011. </summary>
  1012. </member>
  1013. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(System.IServiceProvider,System.Type,System.Object[])">
  1014. <summary>
  1015. Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
  1016. </summary>
  1017. <param name="provider">The service provider used to resolve dependencies</param>
  1018. <param name="instanceType">The type to activate</param>
  1019. <param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
  1020. <returns>An activated object of type instanceType</returns>
  1021. </member>
  1022. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])">
  1023. <summary>
  1024. Create a delegate that will instantiate a type with constructor arguments provided directly
  1025. and/or from an <see cref="T:System.IServiceProvider"/>.
  1026. </summary>
  1027. <param name="instanceType">The type to activate</param>
  1028. <param name="argumentTypes">
  1029. The types of objects, in order, that will be passed to the returned function as its second parameter
  1030. </param>
  1031. <returns>
  1032. A factory that will instantiate instanceType using an <see cref="T:System.IServiceProvider"/>
  1033. and an argument array containing objects matching the types defined in argumentTypes
  1034. </returns>
  1035. </member>
  1036. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance``1(System.IServiceProvider,System.Object[])">
  1037. <summary>
  1038. Instantiate a type with constructor arguments provided directly and/or from an <see cref="T:System.IServiceProvider"/>.
  1039. </summary>
  1040. <typeparam name="T">The type to activate</typeparam>
  1041. <param name="provider">The service provider used to resolve dependencies</param>
  1042. <param name="parameters">Constructor arguments not provided by the <paramref name="provider"/>.</param>
  1043. <returns>An activated object of type T</returns>
  1044. </member>
  1045. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance``1(System.IServiceProvider)">
  1046. <summary>
  1047. Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
  1048. </summary>
  1049. <typeparam name="T">The type of the service</typeparam>
  1050. <param name="provider">The service provider used to resolve dependencies</param>
  1051. <returns>The resolved service or created instance</returns>
  1052. </member>
  1053. <member name="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetServiceOrCreateInstance(System.IServiceProvider,System.Type)">
  1054. <summary>
  1055. Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.
  1056. </summary>
  1057. <param name="provider">The service provider</param>
  1058. <param name="type">The type of the service</param>
  1059. <returns>The resolved service or created instance</returns>
  1060. </member>
  1061. <member name="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilitiesConstructorAttribute">
  1062. <summary>
  1063. Marks the constructor to be used when activating type using <see cref="T:Microsoft.Extensions.DependencyInjection.ActivatorUtilities"/>.
  1064. </summary>
  1065. </member>
  1066. <member name="T:Microsoft.Extensions.DependencyInjection.ObjectFactory">
  1067. <summary>
  1068. The result of <see cref="M:Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateFactory(System.Type,System.Type[])"/>.
  1069. </summary>
  1070. <param name="serviceProvider">The <see cref="T:System.IServiceProvider"/> to get service arguments from.</param>
  1071. <param name="arguments">Additional constructor arguments.</param>
  1072. <returns>The instantiated type.</returns>
  1073. </member>
  1074. </members>
  1075. </doc>