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.
 
 
 
 
 
 

313 lines
19 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.FromApplication(System.Boolean,System.Boolean)">
  55. <summary>
  56. Returns all visible, non-abstract classes from all assemblies located where the application is installed.
  57. </summary>
  58. <param name="includeUnityAssemblies"><see langword="false"/> to include the Unity assemblies; otherwise, <see langword="false"/>. Defaults to <see langword="false"/>.</param>
  59. <param name="skipOnError"><see langword="true"/> to skip errors; otherwise, <see langword="true"/>.</param>
  60. <returns>
  61. All visible, non-abstract classes.
  62. </returns>
  63. <remarks>
  64. If <paramref name="skipOnError"/> is <see langword="true"/>, all exceptions thrown while loading assemblies or getting types from the assemblies
  65. are ignored, and the types that can be retrieved are returned; otherwise, the original exception is thrown. These exceptions might be wrapped in a
  66. <see cref="T:System.AggregateException"/>.
  67. </remarks>
  68. </member>
  69. <member name="T:Microsoft.Practices.Unity.DuplicateTypeMappingException">
  70. <summary>
  71. The exception that is thrown when registering multiple types would result in an type mapping being overwritten.
  72. </summary>
  73. </member>
  74. <member name="M:Microsoft.Practices.Unity.DuplicateTypeMappingException.#ctor(System.String,System.Type,System.Type,System.Type)">
  75. <summary>
  76. Initializes a new instance of the <see cref="T:Microsoft.Practices.Unity.DuplicateTypeMappingException"/> class.
  77. </summary>
  78. <param name="name">The name for the mapping.</param>
  79. <param name="mappedFromType">The source type for the mapping.</param>
  80. <param name="currentMappedToType">The type currently mapped.</param>
  81. <param name="newMappedToType">The new type to map.</param>
  82. </member>
  83. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.Name">
  84. <summary>
  85. Gets the name for the mapping.
  86. </summary>
  87. </member>
  88. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.MappedFromType">
  89. <summary>
  90. Gets the source type for the mapping.
  91. </summary>
  92. </member>
  93. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.CurrentMappedToType">
  94. <summary>
  95. Gets the type currently mapped.
  96. </summary>
  97. </member>
  98. <member name="P:Microsoft.Practices.Unity.DuplicateTypeMappingException.NewMappedToType">
  99. <summary>
  100. Gets the new type to map.
  101. </summary>
  102. </member>
  103. <member name="T:Microsoft.Practices.Unity.Properties.Resources">
  104. <summary>
  105. A strongly-typed resource class, for looking up localized strings, etc.
  106. </summary>
  107. </member>
  108. <member name="P:Microsoft.Practices.Unity.Properties.Resources.ResourceManager">
  109. <summary>
  110. Returns the cached ResourceManager instance used by this class.
  111. </summary>
  112. </member>
  113. <member name="P:Microsoft.Practices.Unity.Properties.Resources.Culture">
  114. <summary>
  115. Overrides the current thread's CurrentUICulture property for all
  116. resource lookups using this strongly typed resource class.
  117. </summary>
  118. </member>
  119. <member name="P:Microsoft.Practices.Unity.Properties.Resources.DuplicateTypeMappingException">
  120. <summary>
  121. 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}..
  122. </summary>
  123. </member>
  124. <member name="P:Microsoft.Practices.Unity.Properties.Resources.ExceptionNullAssembly">
  125. <summary>
  126. Looks up a localized string similar to The set of assemblies contains a null element..
  127. </summary>
  128. </member>
  129. <member name="T:Microsoft.Practices.Unity.RegistrationConvention">
  130. <summary>
  131. Represents a set of types to register and their registration settings.
  132. </summary>
  133. </member>
  134. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetTypes">
  135. <summary>
  136. Gets types to register.
  137. </summary>
  138. </member>
  139. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetFromTypes">
  140. <summary>
  141. Gets a function to get the types that will be requested for each type to configure.
  142. </summary>
  143. </member>
  144. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetName">
  145. <summary>
  146. Gets a function to get the name to use for the registration of each type.
  147. </summary>
  148. </member>
  149. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetLifetimeManager">
  150. <summary>
  151. Gets a function to get the <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/> for the registration of each type. Defaults to no lifetime management.
  152. </summary>
  153. <returns></returns>
  154. </member>
  155. <member name="M:Microsoft.Practices.Unity.RegistrationConvention.GetInjectionMembers">
  156. <summary>
  157. 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.
  158. </summary>
  159. <returns></returns>
  160. </member>
  161. <member name="T:Microsoft.Practices.Unity.UnityContainerRegistrationByConventionExtensions">
  162. <summary>
  163. Provides a set of convenience overloads to the
  164. <see cref="T:Microsoft.Practices.Unity.IUnityContainer"/> interface to support registration of multiple types.
  165. </summary>
  166. </member>
  167. <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)">
  168. <summary>
  169. Registers the supplied types by using the specified rules for name, lifetime manager, injection members, and registration types.
  170. </summary>
  171. <param name="container">The container to configure.</param>
  172. <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>
  173. <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>
  174. <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>
  175. <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>
  176. <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>
  177. <param name="overwriteExistingMappings"><see langword="true"/> to overwrite existing mappings; otherwise, <see langword="false"/>. Defaults to <see langword="false"/>.</param>
  178. <returns>
  179. The container that this method was called on.
  180. </returns>
  181. <exception cref="T:System.ArgumentException">A new registration would overwrite an existing mapping and <paramref name="overwriteExistingMappings"/> is <see langword="false"/>.</exception>
  182. </member>
  183. <member name="M:Microsoft.Practices.Unity.UnityContainerRegistrationByConventionExtensions.RegisterTypes(Microsoft.Practices.Unity.IUnityContainer,Microsoft.Practices.Unity.RegistrationConvention,System.Boolean)">
  184. <summary>
  185. Registers the types according to the <paramref name="convention"/>.
  186. </summary>
  187. <param name="container">The container to configure.</param>
  188. <param name="convention">The convention to determine which types will be registered and how.</param>
  189. <param name="overwriteExistingMappings"><see langword="true"/> to overwrite existing mappings; otherwise, <see langword="false"/>. Defaults to <see langword="false"/>.</param>
  190. <returns>
  191. The container that this method was called on.
  192. </returns>
  193. </member>
  194. <member name="T:Microsoft.Practices.Unity.WithLifetime">
  195. <summary>
  196. Provides helper methods to specify the lifetime for a type with registration by convention.
  197. </summary>
  198. </member>
  199. <member name="M:Microsoft.Practices.Unity.WithLifetime.None(System.Type)">
  200. <summary>
  201. Returns a <see langword="null"/> <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/>.
  202. </summary>
  203. <param name="type">The type.</param>
  204. <returns>A lifetime manager</returns>
  205. </member>
  206. <member name="M:Microsoft.Practices.Unity.WithLifetime.ContainerControlled(System.Type)">
  207. <summary>
  208. Returns a <see cref="T:Microsoft.Practices.Unity.ContainerControlledLifetimeManager"/>.
  209. </summary>
  210. <param name="type">The type.</param>
  211. <returns>A container controlled lifetime manager.</returns>
  212. </member>
  213. <member name="M:Microsoft.Practices.Unity.WithLifetime.ExternallyControlled(System.Type)">
  214. <summary>
  215. Returns a <see cref="T:Microsoft.Practices.Unity.ExternallyControlledLifetimeManager"/>.
  216. </summary>
  217. <param name="type">The type.</param>
  218. <returns>An externally controlled lifetime manager.</returns>
  219. </member>
  220. <member name="M:Microsoft.Practices.Unity.WithLifetime.Hierarchical(System.Type)">
  221. <summary>
  222. Returns a <see cref="T:Microsoft.Practices.Unity.HierarchicalLifetimeManager"/>.
  223. </summary>
  224. <param name="type">The type.</param>
  225. <returns>A hierarchical lifetime manager.</returns>
  226. </member>
  227. <member name="M:Microsoft.Practices.Unity.WithLifetime.PerResolve(System.Type)">
  228. <summary>
  229. Returns a <see cref="T:Microsoft.Practices.Unity.PerResolveLifetimeManager"/>.
  230. </summary>
  231. <param name="type">The type.</param>
  232. <returns>A per resolve lifetime manager.</returns>
  233. </member>
  234. <member name="M:Microsoft.Practices.Unity.WithLifetime.Transient(System.Type)">
  235. <summary>
  236. Returns a <see cref="T:Microsoft.Practices.Unity.TransientLifetimeManager"/>.
  237. </summary>
  238. <param name="type">The type.</param>
  239. <returns>A transient lifetime manager.</returns>
  240. </member>
  241. <member name="M:Microsoft.Practices.Unity.WithLifetime.Custom``1(System.Type)">
  242. <summary>
  243. Returns a <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/>.
  244. </summary>
  245. <typeparam name="T">The custom <see cref="T:Microsoft.Practices.Unity.LifetimeManager"/> type.</typeparam>
  246. <param name="type">The type.</param>
  247. <returns>
  248. A lifetime manager.
  249. </returns>
  250. </member>
  251. <member name="M:Microsoft.Practices.Unity.WithLifetime.PerThread(System.Type)">
  252. <summary>
  253. Returns a <see cref="T:Microsoft.Practices.Unity.PerThreadLifetimeManager"/>.
  254. </summary>
  255. <param name="type">The type.</param>
  256. <returns>A per thread lifetime manager.</returns>
  257. </member>
  258. <member name="T:Microsoft.Practices.Unity.WithMappings">
  259. <summary>
  260. Provides helper methods to map types to the types interfaces to which register them.
  261. </summary>
  262. </member>
  263. <member name="M:Microsoft.Practices.Unity.WithMappings.None(System.Type)">
  264. <summary>
  265. Returns no types.
  266. </summary>
  267. <param name="implementationType">The type to register.</param>
  268. <returns>An empty enumeration.</returns>
  269. </member>
  270. <member name="M:Microsoft.Practices.Unity.WithMappings.FromMatchingInterface(System.Type)">
  271. <summary>
  272. Returns an enumeration with the interface that matches the name of <paramref name="implementationType"/>.
  273. </summary>
  274. <param name="implementationType">The type to register.</param>
  275. <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),
  276. or an empty enumeration if no such interface is found.</returns>
  277. </member>
  278. <member name="M:Microsoft.Practices.Unity.WithMappings.FromAllInterfaces(System.Type)">
  279. <summary>
  280. Returns an enumeration with all the interfaces implemented by <paramref name="implementationType"/>.
  281. </summary>
  282. <param name="implementationType">The type to register.</param>
  283. <returns>An enumeration with all the interfaces implemented by the implementation type except <see cref="T:System.IDisposable"/>.</returns>
  284. </member>
  285. <member name="M:Microsoft.Practices.Unity.WithMappings.FromAllInterfacesInSameAssembly(System.Type)">
  286. <summary>
  287. Returns an enumeration with all the interfaces implemented by <paramref name="implementationType"/> that belong to the same assembly as implementationType.
  288. </summary>
  289. <param name="implementationType">The type to register.</param>
  290. <returns>An enumeration with all the interfaces implemented by the implementation type that belong to the same assembly.</returns>
  291. </member>
  292. <member name="T:Microsoft.Practices.Unity.WithName">
  293. <summary>
  294. Provides helper methods to get type names.
  295. </summary>
  296. </member>
  297. <member name="M:Microsoft.Practices.Unity.WithName.TypeName(System.Type)">
  298. <summary>
  299. Returns the type name.
  300. </summary>
  301. <param name="type">The type.</param>
  302. <returns>The type name.</returns>
  303. </member>
  304. <member name="M:Microsoft.Practices.Unity.WithName.Default(System.Type)">
  305. <summary>
  306. Returns null for the registration name.
  307. </summary>
  308. <param name="type">The type.</param>
  309. <returns><see langword="null"/></returns>
  310. </member>
  311. </members>
  312. </doc>