private static async Task <BaseCodeGenDescriptor> ReGenerateCodeAsync(ConnectedServiceHandlerContext context, Instance instance) { var codeGenDescriptor = new Dynamics365CodeGenDescriptor(context, instance); await codeGenDescriptor.AddGeneratedCodeAsync(); return(codeGenDescriptor); }
internal CrmSvcUtil(Dynamics365CodeGenDescriptor serviceDescriptor) { EnableDebugMode = serviceDescriptor.Instance.ServiceConfig.EnableDebugMode; this._methodTracer = new MethodTracer(); CrmSvcUtilLogger = new TraceLogger(serviceDescriptor.Context.Logger); this.Parameters = new CrmSvcUtilParameters(this._methodTracer); }
private static async Task <BaseCodeGenDescriptor> GenerateCodeAsync(ConnectedServiceHandlerContext context, Instance instance) { var codeGenDescriptor = new Dynamics365CodeGenDescriptor(context, instance); if (instance.ServiceConfig.AddClientNuGet) { await codeGenDescriptor.AddNugetPackagesAsync(); } await codeGenDescriptor.AddGeneratedCodeAsync(); return(codeGenDescriptor); }