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