public static IHillPigeonBuilder AddOrleansCore(this IHillPigeonBuilder builder, Action <OrleansRouteingOptions> setupAction)
        {
            builder.Services.Configure <OrleansRouteingOptions>(setupAction);
            builder.Services.AddSingleton <OrleansActionILGeneratFactory>();

            //配置HillPigeon组件
            builder.AddActionModelConvention <OrleansActionModelConvention>();
            builder.AddControllerModelConvention <OrleansControllerModelConvention>();
            builder.AddParameterModelConvention <OrleansParameterModelConvention>();
            builder.AddApplicationFeatureProvider <OrleansApplicationFeatureProvider>();
            return(builder);
        }
 public static IHillPigeonBuilder AddOrleansCore(this IHillPigeonBuilder builder)
 {
     //配置HillPigeon ApplicationModels组件
     builder.Services.AddSingleton <OrleansActionILGeneratFactory>();
     builder.AddActionModelConvention <OrleansActionModelConvention>();
     builder.AddControllerModelConvention <OrleansControllerModelConvention>();
     builder.AddParameterModelConvention <OrleansParameterModelConvention>();
     builder.AddApplicationFeatureProvider <OrleansApplicationFeatureProvider>();
     //配置Orleans Client
     builder.Services.AddSingleton <IClusterClientFactory, DefaultClusterClientFactory>();
     builder.Services.AddSingleton <IOrleansClient, DefaultOrleansClient>();
     return(builder);
 }