Skip to content

Commit

Permalink
Addressed code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stankovski committed May 27, 2016
1 parent fbdcc27 commit 85f149b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AutoRest/Generators/CSharp/CSharp/CSharpCodeNamer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class CSharpCodeNamer : CodeNamer
{
private readonly HashSet<IType> _normalizedTypes;

[SettingsInfo("Whether to use DateTimeOffset instead of DateTime to model date-time types")]
[SettingsInfo("Indicates whether to use DateTimeOffset instead of DateTime to model date-time types")]
public bool UseDateTimeOffset { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ namespace Microsoft.Rest.Generator.CSharp
/// </summary>
public enum SyncMethodsGenerationMode
{
/// <summary>
/// Default. Generates only one sync returning body or header.
/// </summary>
Essential,
/// <summary>
/// Generates one sync method for each async method.
/// </summary>
All,
/// <summary>
/// Does not generate any sync methods.
/// </summary>
None
}
}
9 changes: 9 additions & 0 deletions Documentation/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@

**-Azure.Python** Azure specific Python code generator.

##Code Generator Specific Settings
###CSharp

**-SyncMethods** 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

**-InternalConstructors** Indicates whether ctor needs to be generated with internal protection level.

**-UseDateTimeOffset** Indicates whether to use DateTimeOffset instead of DateTime to model date-time types.


##Examples
- Generate C# client in MyNamespace from swagger.json input:
Expand Down

0 comments on commit 85f149b

Please sign in to comment.