public void Configure(Type type, Action <ServiceConfiguration.Builder> configure) { var contracts = new List <string>(); if (!string.IsNullOrEmpty(contractName)) { contracts.Add(contractName); } var configurationSet = builder.GetConfigurationSet(type); configurationSet.RegisterLazyConfigurator(() => configure(configurationSet.GetBuilder(contracts))); }
private ServiceConfiguration.Builder GetServiceBuilder(Type type) { return(RegistryBuilder.GetConfigurationSet(type).GetBuilder(contracts)); }