Schema = new OpenApiSchema
{
Type = "integer",
Enum = typeof(MyEnumType).GetEnumValues()
.Cast<int>()
.Select(value => (Microsoft.OpenApi.Any.IOpenApiAny)new Microsoft.OpenApi.Any.OpenApiInteger(value))
.ToList()
}
public static class HttpClientExtensions
{
public static async Task<string> ToRawString(this HttpRequestMessage request)
{
var sb = new StringBuilder();
var line1 = $"{request.Method} {request.RequestUri} HTTP/{request.Version}";
sb.AppendLine(line1);
- https://www.jetbrains.com/help/resharper/AccessToStaticMemberViaDerivedType.html
- https://blog.unity.com/technology/clean-up-your-code-how-to-create-your-own-c-code-style
- https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions
- https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/
- https://google.github.io/styleguide/csharp-style.html
- https://resources.unity.com/games/create-code-style-guide-e-book
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
### Quick api to test http | |
https://httpbin.org/ | |
https://httpstat.us/500 |