forked from opensearch-project/opensearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade RazorLight and use embedded resource project (opensearch-proj…
…ect#233) Signed-off-by: Thomas Farr <[email protected]>
- Loading branch information
Showing
42 changed files
with
204 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 7 additions & 9 deletions
16
src/ApiGenerator/Views/HighLevel/Client/FluentSyntax/FluentMethodHeader.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
@using ApiGenerator.Domain.Code.HighLevel.Methods | ||
@inherits ApiGenerator.CodeTemplatePage<FluentSyntaxView> | ||
@{ | ||
FluentSyntaxBase syntax = Model.Syntax; | ||
|
||
var response = !Model.Async ? syntax.ResponseName : string.Format("Task<{0}>", syntax.ResponseName); | ||
var method = !Model.Async ? syntax.MethodName : string.Format("{0}Async", syntax.MethodName); | ||
var response = !Model.Async ? Model.Syntax.ResponseName : string.Format("Task<{0}>", Model.Syntax.ResponseName); | ||
var method = !Model.Async ? Model.Syntax.MethodName : string.Format("{0}Async", Model.Syntax.MethodName); | ||
|
||
var methodGenerics = syntax.MethodGenerics; | ||
var descriptorArgs = syntax.DescriptorArguments(); | ||
var selector = syntax.Selector; | ||
var optionalSelector = syntax.OptionalSelectorSuffix; | ||
var whereClause = syntax.GenericWhereClause; | ||
var methodGenerics = Model.Syntax.MethodGenerics; | ||
var descriptorArgs = Model.Syntax.DescriptorArguments(); | ||
var selector = Model.Syntax.Selector; | ||
var optionalSelector = Model.Syntax.OptionalSelectorSuffix; | ||
var whereClause = Model.Syntax.GenericWhereClause; | ||
var cancellationToken = !Model.Async ? string.Empty : ", CancellationToken ct = default"; | ||
} | ||
@Raw(response) @(method)@(Raw(methodGenerics))(@(Raw(descriptorArgs))@(Raw(selector)) selector@(optionalSelector)@(cancellationToken))@whereClause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
src/ApiGenerator/Views/HighLevel/Client/InitializerSyntax/InitializerMethodHeader.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
@using ApiGenerator.Domain.Code.HighLevel.Methods | ||
@inherits ApiGenerator.CodeTemplatePage<InitializerSyntaxView> | ||
@{ | ||
InitializerMethod syntax = Model.Syntax; | ||
|
||
var response = !Model.Async ? syntax.ResponseName : string.Format("Task<{0}>", syntax.ResponseName); | ||
var method = !Model.Async ? syntax.MethodName : string.Format("{0}Async", syntax.MethodName); | ||
var requestMethodGenerics = syntax.MethodGenerics; | ||
var response = !Model.Async ? Model.Syntax.ResponseName : string.Format("Task<{0}>", Model.Syntax.ResponseName); | ||
var method = !Model.Async ? Model.Syntax.MethodName : string.Format("{0}Async", Model.Syntax.MethodName); | ||
var requestMethodGenerics = Model.Syntax.MethodGenerics; | ||
|
||
var methodsArgs = string.Format("{0} request", syntax.ArgumentType); | ||
var methodsArgs = string.Format("{0} request", Model.Syntax.ArgumentType); | ||
if (Model.Async) | ||
{ | ||
methodsArgs += ", CancellationToken ct = default"; | ||
} | ||
var whereClause = syntax.GenericWhereClause; | ||
var whereClause = Model.Syntax.GenericWhereClause; | ||
} | ||
@Raw(response) @(method)@(Raw(requestMethodGenerics))(@Raw(methodsArgs))@whereClause |
Oops, something went wrong.