/// <summary> /// /// </summary> /// <param name="codeGenParameters"></param> /// <remarks>The client data types should better be generated through SvcUtil.exe with the DC option. The client namespace will then be the original namespace plus suffix ".client". </remarks> public ControllersClientApiGen(CodeGenSettings codeGenParameters) { this.CodeGenParameters = codeGenParameters ?? throw new System.ArgumentNullException(nameof(codeGenParameters)); TargetUnit = new CodeCompileUnit(); //SharedContext = new SharedContext(); poco2CsGen = new Poco2CsGen(TargetUnit); }
/// <summary> /// /// </summary> /// <param name="excludedControllerNames">Excluse some Api Controllers from being exposed to the client API. Each item should be fully qualified class name but without the assembly name.</param> /// <remarks>The client data types should better be generated through SvcUtil.exe with the DC option. The client namespace will then be the original namespace plus suffix ".client". </remarks> public ControllersClientApiGen(CodeGenSettings codeGenParameters) { if (codeGenParameters == null) { throw new System.ArgumentNullException("codeGenParameters"); } this.codeGenParameters = codeGenParameters; targetUnit = new CodeCompileUnit(); sharedContext = new SharedContext(); poco2CsGen = new Poco2CsGen(targetUnit); }