NSwag.CodeGeneration.CodeGenerators.CSharp.Models.ClientTemplateModel.ClientTemplateModel C# (CSharp) Method

ClientTemplateModel() public method

Initializes a new instance of the ClientTemplateModel class.
public ClientTemplateModel ( string controllerName, string controllerClassName, IList operations, SwaggerDocument document, NJsonSchema.JsonSchema4 exceptionSchema, SwaggerToCSharpClientGeneratorSettings settings ) : System.Collections.Generic
controllerName string Name of the controller.
controllerClassName string The class name of the controller.
operations IList The operations.
document SwaggerDocument The Swagger document.
exceptionSchema NJsonSchema.JsonSchema4 The exception schema.
settings SwaggerToCSharpClientGeneratorSettings The settings.
return System.Collections.Generic
        public ClientTemplateModel(string controllerName, string controllerClassName, IList<OperationModel> operations,
            SwaggerDocument document, JsonSchema4 exceptionSchema, SwaggerToCSharpClientGeneratorSettings settings)
        {
            _document = document;
            _exceptionSchema = exceptionSchema;
            _settings = settings;

            Class = controllerClassName;
            ExceptionClass = _settings.ExceptionClass.Replace("{controller}", controllerName);
            Operations = operations;
        }
ClientTemplateModel