private ClassDescripter generateClass(Type servicerType) { var servicerName = $"KadderServer{servicerType.Name}"; var namespaceName = servicerType.Namespace; if (!string.IsNullOrWhiteSpace(_packageName)) { namespaceName = _packageName; } var classDescripter = new ClassDescripter(servicerName, namespaceName) .SetBaseType(typeof(IGrpcServices).Name) .AddUsing(typeof(IGrpcServices).Namespace) .AddUsing( "using Grpc.Core;", "using System.Threading.Tasks;", "using Kadder;", "using Kadder.Utilies;", "using Kadder.Utils;", "using Microsoft.Extensions.DependencyInjection;", "using Kadder.Messaging;"); classDescripter.SetAccess(AccessType.Public); return(classDescripter); }
private ClassDescripter generateClass(Type servicerType) { var servicerName = $"KadderClient{servicerType.Name}"; var namespaceName = getNamespaceName(servicerType); var classDescripter = new ClassDescripter(servicerName, namespaceName) .SetBaseType(servicerType.Name) .AddUsing(servicerType.Namespace) .AddUsing( "using Grpc.Core;", "using System.Threading.Tasks;", "using Kadder;", "using Kadder.Utilies;", "using Kadder.Utils;", "using Microsoft.Extensions.DependencyInjection;", "using Kadder.Messaging;"); classDescripter.SetAccess(AccessType.Public); return(classDescripter); }