コード例 #1
0
        private static async Task <BaseCodeGenDescriptor> ReGenerateCodeAsync(ConnectedServiceHandlerContext context, Instance instance)
        {
            var codeGenDescriptor = new Dynamics365CodeGenDescriptor(context, instance);
            await codeGenDescriptor.AddGeneratedCodeAsync();

            return(codeGenDescriptor);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
        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);
        }