You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

329 lines
20 KiB

  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>Microsoft.Practices.Unity.RegistrationByConvention</name>
  5. </assembly>
  6. <members>
  7. <member name="T:Microsoft.Practices.Unity.AllClasses">
  8. <summary>
  9. Provides helper methods to retrieve classes from assemblies.
  10. </summary>
  11. </member>
  12. <member name="M:Microsoft.Practices.Unity.AllClasses.FromAssemblies(System.Reflection.Assembly[])">
  13. <summary>
  14. Returns all visible, non-abstract classes from <paramref name="assemblies"/>.
  15. </summary>
  16. <param name="assemblies">The assemblies.</param>
  17. <returns>All visible, non-abstract classes found in the assemblies.</returns>
  18. <exception cref="T:System.ArgumentNullException"><paramref name="assemblies"/> is <see langword="null"/>.</exception>
  19. <exception cref="T:System.ArgumentException"><paramref name="assemblies"/> contains <see langword="null"/> elements.</exception>
  20. <remarks>All exceptions thrown while getting types from the assemblies are ignored, and the types that can be retrieved are returned.</remarks>
  21. </member>
  22. <member name="M:Microsoft.Practices.Unity.AllClasses.FromAssemblies(System.Boolean,System.Reflection.Assembly[])">
  23. <summary>
  24. Returns all visible, non-abstract classes from <paramref name="assemblies"/>, and optionally skips errors.
  25. </summary>
  26. <param name="skipOnError"><see langword="true"/> to skip errors; otherwise, <see langword="true"/>.</param>
  27. <param name="assemblies">The assemblies.</param>
  28. <returns>
  29. All visible, non-abstract classes.
  30. </returns>
  31. <exception cref="T:System.ArgumentNullException"><paramref name="assemblies"/> is <see langword="null"/>.</exception>
  32. <exception cref="T:System.ArgumentException"><paramref name="assemblies"/> contains <see langword="null"/> elements.</exception>
  33. <remarks>
  34. If <paramref name="skipOnError"/> is <see langword="true"/>, all exceptions thrown while getting types from the assemblies are ignored, and the types
  35. that can be retrieved are returned; otherwise, the original exception is thrown.
  36. </remarks>
  37. </member>
  38. <member name="M:Microsoft.Practices.Unity.AllClasses.FromAssemblies(System.Collections.Generic.IEnumerable{System.Reflection.Assembly},System.Boolean)">
  39. <summary>
  40. Returns all visible, non-abstract classes from <paramref name="assemblies"/>.
  41. </summary>
  42. <param name="skipOnError"><see langword="true"/> to skip errors; otherwise, <see langword="true"/>.</param>
  43. <param name="assemblies">The assemblies.</param>
  44. <returns>
  45. All visible, non-abstract classes.
  46. </returns>
  47. <exception cref="T:System.ArgumentNullException"><paramref name="assemblies"/> is <see langword="null"/>.</exception>
  48. <exception cref="T:System.ArgumentException"><paramref name="assemblies"/> contains <see langword="null"/> elements.</exception>
  49. <remarks>
  50. If <paramref name="skipOnError"/> is <see langword="true"/>, all exceptions thrown while getting types from the assemblies are ignored, and the types
  51. that can be retrieved are returned; otherwise, the original exception is thrown.
  52. </remarks>
  53. </member>
  54. <member name="M:Microsoft.Practices.Unity.AllClasses.FromLoadedAssemblies(System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
  55. <summary>
  56. Returns all visible, non-abstract classes from all assemblies that are loaded in the current application domain.
  57. </summary>
  58. <param name="includeSystemAssemblies"><see langword="false" /> to include system assemblies; otherwise, <see langword="false" />. Defaults to <see langword="false" />.</param>
  59. <param name="includeUnityAssemblies"><see langword="false" /> to include the Unity assemblies; otherwise, <see langword="false" />. Defaults to <see langword="false" />.</param>
  60. <param name="includeDynamicAssemblies"><see langword="false" /> to include dynamic assemblies; otherwise, <see langword="false" />. Defaults to <see langword="false" />.</param>
  61. <param name="skipOnError"><see langword="true"/> to skip errors; otherwise, <see langword="true"/>.</param>
  62. <returns>
  63. All visible, non-abstract classes in the loaded assemblies.
  64. </returns>
  65. <remarks>
  66. If <paramref name="skipOnError" /> is <see langword="true" />, all exceptions thrown while getting types from the assemblies are ignored, and the types
  67. that can be retrieved are returned; otherwise, the original exception is thrown.
  68. </remarks>
  69. </member>
  70. <member name="M:Microsoft.Practices.Unity.AllClasses.FromAssembliesInBasePath(System.Boolean,System.Boolean,System.Boolean)">
  71. <summary>
  72. Returns all visible, non-abstract classes from all assemblies that are located in the base folder of the current application domain.
  73. </summary>
  74. <param name="includeSystemAssemblies"><see langword="false" /> to include system assemblies; otherwise, <see langword="false" />. Defaults to <see langword="false" />.</param>
  75. <param name="includeUnityAssemblies"><see langword="false" /> to include the Unity assemblies; otherwise, <see langword="false" />. Defaults to <see langword="false" />.</param>
  76. <param name="skipOnError"><see langword="true"/> to skip errors; otherwise, <see langword="true"/>.</param>
  77. <returns>
  78. All visible, non-abstract classes.
  79. </returns>
  80. <remarks>
  81. If <paramref name="skipOnError" /> is <see langword="true" />, all exceptions thrown while loading assemblies or getting types from the assemblies are ignored, and the types
  82. that can be retrieved are returned; otherwise, the original exception is thrown.
  83. </remarks>
  84. </member>
  85. <member name="T:Microsoft.Practices.Unity.DuplicateTypeMappingException">
  86. <summary>
  87. The exception that is thrown when registering multiple types would result in an type mapping being overwritten.
  88. </summary>
  89. </member>
  90. <member name="M:Microsoft.Practices.Unity.DuplicateTypeMappingException.#ctor(System.String,System.Type,System.Type,System.Type)">
  91. <summary>
  92. Initializes a new instance of the <see cref="T:Microsoft.Practices.Unity.DuplicateTypeMappingException"/> class.
  93. </summary>
  94. <param name="name">The name for the mapping.</param>
  95. <param name="mappedFromType">The source type for the mapping.</param>
  96. <param name="currentMappedToType">The type currently mapped.</param>
  97. <param name="newMappedToType">The new type to map.</param>
  98. </member>
  99. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.Name">
  100. <summary>
  101. Gets the name for the mapping.
  102. </summary>
  103. </member>
  104. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.MappedFromType">
  105. <summary>
  106. Gets the source type for the mapping.
  107. </summary>
  108. </member>
  109. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.CurrentMappedToType">
  110. <summary>
  111. Gets the type currently mapped.
  112. </summary>
  113. </member>
  114. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.NewMappedToType">
  115. <summary>
  116. Gets the new type to map.
  117. </summary>
  118. </member>
  119. <member name="T:Microsoft.Practices.Unity.Properties.Resources">
  120. <summary>
  121. A strongly-typed resource class, for looking up localized strings, etc.
  122. </summary>
  123. </member>
  124. <member name="P:Microsoft.Practices.Unity.Properties.Resources.ResourceManager">
  125. <summary>
  126. Returns the cached ResourceManager instance used by this class.
  127. </summary>
  128. </member>
  129. <member name="P:Microsoft.Practices.Unity.Properties.Resources.Culture">
  130. <summary>
  131. Overrides the current thread's CurrentUICulture property for all
  132. resource lookups using this strongly typed resource class.
  133. </summary>
  134. </member>
  135. <member name="P:Microsoft.Practices.Unity.Properties.Resources.DuplicateTypeMappingException">
  136. <summary>
  137. Looks up a localized string similar to An attempt to override an existing mapping was detected for type {1} with name &quot;{0}&quot;, currently mapped to type {2}, to type {3}..
  138. </summary>
  139. </member>
  140. <member name="P:Microsoft.Practices.Unity.Properties.Resources.ExceptionNullAssembly">
  141. <summary>
  142. Looks up a localized string similar to The set of assemblies contains a null element..
  143. </summary>
  144. </member>
  145. <member name="T:Microsoft.Practices.Unity.RegistrationConvention">
  146. <summary>
  147. Represents a set of types to register and their registration settings.
  148. </summary>
  149. </member>
  150. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetTypes">
  151. <summary>
  152. Gets types to register.
  153. </summary>
  154. </member>
  155. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetFromTypes">
  156. <summary>
  157. Gets a function to get the types that will be requested for each type to configure.
  158. </summary>
  159. </member>
  160. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetName">
  161. <summary>
  162. Gets a function to get the name to use for the registration of each type.
  163. </summary>
  164. </member>
  165. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetLifetimeManager">
  166. <summary>
  167. Gets a function to get the <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/> for the registration of each type. Defaults to no lifetime management.
  168. </summary>
  169. <returns></returns>
  170. </member>
  171. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetInjectionMembers">
  172. <summary>
  173. Gets a function to get the additional <see cref="T:Microsoft.Practices.Unity.InjectionMember"/> objects for the registration of each type. Defaults to no injection members.
  174. </summary>
  175. <returns></returns>
  176. </member>
  177. <member name="T:Microsoft.Practices.Unity.UnityContainerRegistrationByConventionExtensions">
  178. <summary>
  179. Provides a set of convenience overloads to the
  180. <see cref="T:Microsoft.Practices.Unity.IUnityContainer"/> interface to support registration of multiple types.
  181. </summary>
  182. </member>
  183. <member name="M:Microsoft.Practices.Unity.UnityContainerRegistrationByConventionExtensions.RegisterTypes(Microsoft.Practices.Unity.IUnityContainer,System.Collections.Generic.IEnumerable{System.Type},System.Func{System.Type,System.Collections.Generic.IEnumerable{System.Type}},System.Func{System.Type,System.String},System.Func{System.Type,Microsoft.Practices.Unity.LifetimeManager},System.Func{System.Type,System.Collections.Generic.IEnumerable{Microsoft.Practices.Unity.InjectionMember}},System.Boolean)">
  184. <summary>
  185. Registers the supplied types by using the specified rules for name, lifetime manager, injection members, and registration types.
  186. </summary>
  187. <param name="container">The container to configure.</param>
  188. <param name="types">The types to register. The methods in the <see cref="T:Microsoft.Practices.Unity.AllClasses"/> class can be used to scan assemblies to get types, and further filtering can be performed using LINQ queries.</param>
  189. <param name="getFromTypes">A function that gets the types that will be requested for each type to configure. It can be a method from the <see cref="T:Microsoft.Practices.Unity.WithMappings"/> class or a custom function. Defaults to no registration types, and registers only the supplied types.</param>
  190. <param name="getName">A function that gets the name to use for the registration of each type. It can be a method from the <see cref="T:Microsoft.Practices.Unity.WithName"/> or a custom function. Defaults to no name.</param>
  191. <param name="getLifetimeManager">A function that gets the <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/> for the registration of each type. It can be a method from the <see cref="T:Microsoft.Practices.Unity.WithLifetime"/> class or a custom function. Defaults to no lifetime management.</param>
  192. <param name="getInjectionMembers">A function that gets the additional <see cref="T:Microsoft.Practices.Unity.InjectionMember"/> objects for the registration of each type. Defaults to no injection members.</param>
  193. <param name="overwriteExistingMappings"><see langword="true"/> to overwrite existing mappings; otherwise, <see langword="false"/>. Defaults to <see langword="false"/>.</param>
  194. <returns>
  195. The container that this method was called on.
  196. </returns>
  197. <exception cref="T:System.ArgumentException">A new registration would overwrite an existing mapping and <paramref name="overwriteExistingMappings"/> is <see langword="false"/>.</exception>
  198. </member>
  199. <member name="M:Microsoft.Practices.Unity.UnityContainerRegistrationByConventionExtensions.RegisterTypes(Microsoft.Practices.Unity.IUnityContainer,Microsoft.Practices.Unity.RegistrationConvention,System.Boolean)">
  200. <summary>
  201. Registers the types according to the <paramref name="convention"/>.
  202. </summary>
  203. <param name="container">The container to configure.</param>
  204. <param name="convention">The convention to determine which types will be registered and how.</param>
  205. <param name="overwriteExistingMappings"><see langword="true"/> to overwrite existing mappings; otherwise, <see langword="false"/>. Defaults to <see langword="false"/>.</param>
  206. <returns>
  207. The container that this method was called on.
  208. </returns>
  209. </member>
  210. <member name="T:Microsoft.Practices.Unity.WithLifetime">
  211. <summary>
  212. Provides helper methods to specify the lifetime for a type with registration by convention.
  213. </summary>
  214. </member>
  215. <member name="M:Microsoft.Practices.Unity.WithLifetime.None(System.Type)">
  216. <summary>
  217. Returns a <see langword="null"/> <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/>.
  218. </summary>
  219. <param name="type">The type.</param>
  220. <returns>A lifetime manager</returns>
  221. </member>
  222. <member name="M:Microsoft.Practices.Unity.WithLifetime.ContainerControlled(System.Type)">
  223. <summary>
  224. Returns a <see cref="T:Microsoft.Practices.Unity.ContainerControlledLifetimeManager"/>.
  225. </summary>
  226. <param name="type">The type.</param>
  227. <returns>A container controlled lifetime manager.</returns>
  228. </member>
  229. <member name="M:Microsoft.Practices.Unity.WithLifetime.ExternallyControlled(System.Type)">
  230. <summary>
  231. Returns a <see cref="T:Microsoft.Practices.Unity.ExternallyControlledLifetimeManager"/>.
  232. </summary>
  233. <param name="type">The type.</param>
  234. <returns>An externally controlled lifetime manager.</returns>
  235. </member>
  236. <member name="M:Microsoft.Practices.Unity.WithLifetime.Hierarchical(System.Type)">
  237. <summary>
  238. Returns a <see cref="T:Microsoft.Practices.Unity.HierarchicalLifetimeManager"/>.
  239. </summary>
  240. <param name="type">The type.</param>
  241. <returns>A hierarchical lifetime manager.</returns>
  242. </member>
  243. <member name="M:Microsoft.Practices.Unity.WithLifetime.PerResolve(System.Type)">
  244. <summary>
  245. Returns a <see cref="T:Microsoft.Practices.Unity.PerResolveLifetimeManager"/>.
  246. </summary>
  247. <param name="type">The type.</param>
  248. <returns>A per resolve lifetime manager.</returns>
  249. </member>
  250. <member name="M:Microsoft.Practices.Unity.WithLifetime.Transient(System.Type)">
  251. <summary>
  252. Returns a <see cref="T:Microsoft.Practices.Unity.TransientLifetimeManager"/>.
  253. </summary>
  254. <param name="type">The type.</param>
  255. <returns>A transient lifetime manager.</returns>
  256. </member>
  257. <member name="M:Microsoft.Practices.Unity.WithLifetime.Custom``1(System.Type)">
  258. <summary>
  259. Returns a <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/>.
  260. </summary>
  261. <typeparam name="T">The custom <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/> type.</typeparam>
  262. <param name="type">The type.</param>
  263. <returns>
  264. A lifetime manager.
  265. </returns>
  266. </member>
  267. <member name="M:Microsoft.Practices.Unity.WithLifetime.PerThread(System.Type)">
  268. <summary>
  269. Returns a <see cref="T:Microsoft.Practices.Unity.PerThreadLifetimeManager"/>.
  270. </summary>
  271. <param name="type">The type.</param>
  272. <returns>A per thread lifetime manager.</returns>
  273. </member>
  274. <member name="T:Microsoft.Practices.Unity.WithMappings">
  275. <summary>
  276. Provides helper methods to map types to the types interfaces to which register them.
  277. </summary>
  278. </member>
  279. <member name="M:Microsoft.Practices.Unity.WithMappings.None(System.Type)">
  280. <summary>
  281. Returns no types.
  282. </summary>
  283. <param name="implementationType">The type to register.</param>
  284. <returns>An empty enumeration.</returns>
  285. </member>
  286. <member name="M:Microsoft.Practices.Unity.WithMappings.FromMatchingInterface(System.Type)">
  287. <summary>
  288. Returns an enumeration with the interface that matches the name of <paramref name="implementationType"/>.
  289. </summary>
  290. <param name="implementationType">The type to register.</param>
  291. <returns>An enumeration with the first interface matching the name of <paramref name="implementationType"/> (for example, if type is MyType, a matching interface is IMyType),
  292. or an empty enumeration if no such interface is found.</returns>
  293. </member>
  294. <member name="M:Microsoft.Practices.Unity.WithMappings.FromAllInterfaces(System.Type)">
  295. <summary>
  296. Returns an enumeration with all the interfaces implemented by <paramref name="implementationType"/>.
  297. </summary>
  298. <param name="implementationType">The type to register.</param>
  299. <returns>An enumeration with all the interfaces implemented by the implementation type except <see cref="T:System.IDisposable"/>.</returns>
  300. </member>
  301. <member name="M:Microsoft.Practices.Unity.WithMappings.FromAllInterfacesInSameAssembly(System.Type)">
  302. <summary>
  303. Returns an enumeration with all the interfaces implemented by <paramref name="implementationType"/> that belong to the same assembly as implementationType.
  304. </summary>
  305. <param name="implementationType">The type to register.</param>
  306. <returns>An enumeration with all the interfaces implemented by the implementation type that belong to the same assembly.</returns>
  307. </member>
  308. <member name="T:Microsoft.Practices.Unity.WithName">
  309. <summary>
  310. Provides helper methods to get type names.
  311. </summary>
  312. </member>
  313. <member name="M:Microsoft.Practices.Unity.WithName.TypeName(System.Type)">
  314. <summary>
  315. Returns the type name.
  316. </summary>
  317. <param name="type">The type.</param>
  318. <returns>The type name.</returns>
  319. </member>
  320. <member name="M:Microsoft.Practices.Unity.WithName.Default(System.Type)">
  321. <summary>
  322. Returns null for the registration name.
  323. </summary>
  324. <param name="type">The type.</param>
  325. <returns><see langword="null"/></returns>
  326. </member>
  327. </members>
  328. </doc>