Skip to content

CSharpClientGeneratorSettings

Rico Suter edited this page Jun 6, 2019 · 2 revisions

Inherits CSharpGeneratorBaseSettings

Properties:

  • ClientBaseClass: Full name of the base class
  • ConfigurationClass: Specifies the name of the configuration class (see below, requires setting the ClientBaseClass)
  • GenerateExceptionClasses
  • ExceptionClass: The name of the generated exception classes (supports the {controller} placeholder
  • InjectHttpClient: Inject the HttpClient via constructor so that its lifetime can be handled externally
  • DisposeHttpClient
  • ProtectedMethods
  • UseHttpClientCreationMethod: Indicates whether to call CreateHttpClientAsync on the base class to create a new HttpClient instance (ClientBaseClass must be defined).
  • UseHttpRequestMessageCreationMethod: Indicates whether to call CreateHttpRequestMessageAsync on the base class to create a new HttpRequestMessage (ClientBaseClass must be defined).
  • WrapDtoExceptions
  • ClientClassAccessModifier
  • UseBaseUrl
  • GenerateBaseUrlProperty
  • GenerateSyncMethods
  • HttpClientType
  • ParameterDateTimeFormat
  • GenerateUpdateJsonSerializerSettingsMethod
  • SerializeTypeInformation: Indicates whether the generated client will automatically use TypeNameHandling.Auto property of the Newtonsoft.Json serializer. Furthermore, this option will update the generated client code for the correct use of the property. For more information about the property see: Newtonsoft.Json documentation
  • QueryNullValue
  • ExposeJsonSerializerSettings
You can’t perform that action at this time.