/// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="implementationProvider">The type implementation provider to use.</param>
        /// <param name="options">The options used to determine the lifestyle of types.</param>
        public AttributeLifestyleResolver(IImplementationProvider implementationProvider, AttributeLifestyleResolverOptions options)
        {
            this.implementationProvider = implementationProvider;
            this.options = options;

            this.resolvedLifestyles = new Dictionary<Type, Lifestyle>();
        }
Beispiel #2
0
 private Menu BuildImplementationMenu(IImplementationProvider implementationProvider)
 {
     return(BuildMenu(ImplementationMenuHeader, implementationProvider.GetImplementations().Keys.OrderBy(k => k), ImplementationMenuQuestion));
 }
Beispiel #3
0
 public void DisplayImplementationMenu(IImplementationProvider implementationProvider)
 {
     DisplayMenu(BuildImplementationMenu(implementationProvider));
 }