public static IMdaBuilder AddDisruptorOptions(this IMdaBuilder builder, int inboundRingBufferSize, int outboundRingBufferSize) { builder.Services.Add(ServiceDescriptor.Singleton <IConfigureOptions <DisruptorOptions> >( new DisruptorOptionsConfigure(inboundRingBufferSize, outboundRingBufferSize))); return(builder); }
public static IMdaBuilder AddClusterSettings(this IMdaBuilder builder, AppMode mode) { builder.Services.Add(ServiceDescriptor.Singleton <IConfigureOptions <ClusterSettings> >( new ClusterSettingsConfigure(mode))); return(builder); }
public static IMdaBuilder AddMdaOptions(this IMdaBuilder builder, ClusterSettings clusterSettings, DisruptorOptions disruptorOptions) { builder.Services.Add(ServiceDescriptor.Singleton <IConfigureOptions <MdaOptions> >( new MdaOptionsConfigure(clusterSettings, disruptorOptions))); return(builder); }