CSharpGeneratorSettings Class

Summary

CSharp generator-specific settings for use when generating C# clients
Assembly
Cake.AutoRest.dll
Namespace
Cake.AutoRest
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IGeneratorSettings"] click Interface0 "/api/Cake.AutoRest/IGeneratorSettings" Type["CSharpGeneratorSettings"] class Type type-node

Syntax

public class CSharpGeneratorSettings : IGeneratorSettings

Constructors

Properties

Name Value Summary
Generator CodeGenerator
The standard generator to use. Can still be overridden by AutoRestSettings
InternalConstructors Nullable<bool>
Indicates whether ctor needs to be generated with internal protection level.
SyncMethodMode string
Specifies mode for generating sync wrappers.

Supported value are Essential - generates only one sync returning body or header (default), All - generates one sync method for each async method, and None - does not generate any sync methods

UseDateTimeOffset Nullable<bool>
Indicates whether to use DateTimeOffset instead of DateTime to model date-time types.

Methods

Name Value Summary
GetArguments() Dictionary<string, string>
Gets the arguments to use when invoking

Extension Methods

Name Value Summary
Dump<CSharpGeneratorSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<CSharpGeneratorSettings>(CSharpGeneratorSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<CSharpGeneratorSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<CSharpGeneratorSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<CSharpGeneratorSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<CSharpGeneratorSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin