This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AutoRest.
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
Name | Summary |
---|---|
C |
Properties
Name | Value | Summary |
---|---|---|
Generator | CodeGenerator |
The standard generator to use. Can still be overridden by
AutoRestSettings
|
InternalConstructors | Nullable |
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 |
Indicates whether to use DateTimeOffset instead of DateTime to model date-time types.
|
Methods
Name | Value | Summary |
---|---|---|
GetArguments |
Dictionary |
Gets the arguments to use when invoking
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|