Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments public methods #75

Merged
merged 4 commits into from Feb 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/MMLib.SwaggerForOcelot/Configuration/ReRouteOptions.cs
Expand Up @@ -16,6 +16,9 @@ public class ReRouteOptions

private readonly Lazy<HashSet<string>> _httpMethods;

/// <summary>
/// Ctor.
/// </summary>
public ReRouteOptions()
{
_httpMethods = new Lazy<HashSet<string>>(()
Expand Down
2 changes: 1 addition & 1 deletion src/MMLib.SwaggerForOcelot/Middleware/BuilderExtensions.cs
Expand Up @@ -83,7 +83,7 @@ private static IEnumerable<SwaggerEndPointOptions> GetConfiguration(IConfigurati
configuration.GetSection(SwaggerEndPointOptions.ConfigurationSectionName)
.Get<IEnumerable<SwaggerEndPointOptions>>();

if (options == null)
if (options is null)
{
throw new InvalidOperationException(
$"{SwaggerEndPointOptions.ConfigurationSectionName} configuration section is missing or empty.");
Expand Down
Expand Up @@ -100,7 +100,7 @@ private async Task<string> ReconfigureUpstreamSwagger(HttpContext context, strin

private void AddHeaders(HttpClient httpClient)
{
if (_options.DownstreamSwaggerHeaders == null)
if (_options.DownstreamSwaggerHeaders is null)
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/MMLib.SwaggerForOcelot/StringExtensions.cs
@@ -1,7 +1,7 @@
namespace System
{
/// <summary>
/// String extensions
/// String extensions.
/// </summary>
internal static class StringExtensions
{
Expand Down
@@ -1,7 +1,5 @@
using MMLib.SwaggerForOcelot.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace MMLib.SwaggerForOcelot.Transformation
{
Expand Down