internal static void AddBinderServices(this IServiceCollection services, IBinderTypeRegistry registry, IConfiguration configuration) { var binderConfigurations = new BinderConfigurations(registry, configuration.GetSection("spring:cloud:stream")); services.TryAddSingleton <IBinderConfigurations>(binderConfigurations); services.AddBinderServices(binderConfigurations, configuration); }
public BinderConfigurations(IBinderTypeRegistry binderTypeRegistry, BindingServiceOptions options) { Registry = binderTypeRegistry; Options = options; }
public BinderConfigurations(IBinderTypeRegistry binderTypeRegistry, IConfiguration config) { Registry = binderTypeRegistry; Options = new BindingServiceOptions(config); }