public DynamicHostController(IConfigureThisEndpoint specifier, string[] requestedProfiles,IEnumerable<Type> defaultProfiles) { this.specifier = specifier; var assembliesToScan = new[] {GetType().Assembly}; profileManager = new ProfileManager(assembliesToScan, specifier, requestedProfiles, defaultProfiles); configManager = new ConfigManager(assembliesToScan, specifier); }
/// <summary> /// Accepts the type which will specify the users custom configuration. /// This type should implement <see cref="IConfigureThisEndpoint"/>. /// </summary> /// <param name="specifier"></param> /// <param name="args"></param> /// <param name="defaultProfiles"></param> public GenericHost(IConfigureThisEndpoint specifier, string[] args,IEnumerable<Type> defaultProfiles) { this.specifier = specifier; var assembliesToScan = AssemblyScanner.GetScannableAssemblies(); profileManager = new ProfileManager(assembliesToScan, specifier, args,defaultProfiles); configManager = new ConfigManager(assembliesToScan, specifier); wcfManager = new WcfManager(assembliesToScan); roleManager = new RoleManager(assembliesToScan); }
/// <summary> /// Accepts the type which will specify the users custom configuration. /// This type should implement <see cref="IConfigureThisEndpoint"/>. /// </summary> /// <param name="specifier"></param> /// <param name="args"></param> /// <param name="defaultProfiles"></param> /// <param name="endpointName"></param> public GenericHost(IConfigureThisEndpoint specifier, string[] args, IEnumerable<Type> defaultProfiles, string endpointName) { this.specifier = specifier; Configure.GetEndpointNameAction = () => endpointName; var assembliesToScan = AssemblyScanner.GetScannableAssemblies() .ToList(); profileManager = new ProfileManager(assembliesToScan, specifier, args, defaultProfiles); ProfileActivator.ProfileManager = profileManager; configManager = new ConfigManager(assembliesToScan, specifier); wcfManager = new WcfManager(assembliesToScan); roleManager = new RoleManager(assembliesToScan); }