using System; using System.Collections.Generic; using System.Text; namespace TEAMModelOS.SDK.Module.GrpcServer.Extensions { public class GrpcExtensionsOptions { private static Lazy instance = new Lazy(() => new GrpcExtensionsOptions(), true); public static GrpcExtensionsOptions Instance => instance.Value; private GrpcExtensionsOptions() { } /// /// grpc服务的包名 /// public string GlobalPackage { get; set; } /// /// grpc服务的对外服务名 /// public string GlobalService { get; set; } /// /// 生成proto文件的c#命名空间 /// public string ProtoNameSpace { get; set; } /// /// 是否为基础服务生成proto文件 /// public bool GenBaseServiceProtoEnable = false; /// /// proto的message可能的开头的关键字 /// public List ProtoMsgStartWithKeywords { get; set; } = new List { "message", "enum" }; public bool GlobalSaveResponseEnable { get; set; } = false; public List FillPropExcludePrefixs { get; set; } = new List { "Google." }; } }