Skip to content

Commit

Permalink
chore: remove code warnings regarding usings
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashilzendegen authored and gingters committed Nov 9, 2023
1 parent d7938fb commit 488ffeb
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Thinktecture.Relay.Acknowledgement;
using Thinktecture.Relay.Connector.Options;
using Thinktecture.Relay.Connector.Transport;
using Thinktecture.Relay.Transport;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Thinktecture.Relay.Acknowledgement;
using Thinktecture.Relay.Connector.Options;
using Thinktecture.Relay.Transport;

namespace Thinktecture.Relay.Connector.Targets;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Thinktecture.Relay.Connector.Options;
using Thinktecture.Relay.Transport;

namespace Thinktecture.Relay.Connector.Targets;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ public class Page<T>
/// <summary>
/// Gets or sets the total amount of data entries available.
/// </summary>
public int TotalCount { get; set; } = 0;
public int TotalCount { get; set; }

/// <summary>
/// Gets or sets the starting index of the <see cref="Results"/> array within all available entries.
/// </summary>
public int Offset { get; set; } = 0;
public int Offset { get; set; }

/// <summary>
/// Gets or sets the requested maximum size of the <see cref="Results"/> array.
/// </summary>
public int PageSize { get; set; } = 0;
public int PageSize { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Threading.Tasks;

namespace Thinktecture.Relay.Server.Persistence;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<Title>Thinktecture RelayServer Interceptors</Title>
<Description>Contains interceptors for the RelayServer server.</Description>
<RootNamespace>Thinktecture.Relay.Interceptors</RootNamespace>
<RootNamespace>Thinktecture.Relay.Server.Interceptors</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.Extensions.DependencyInjection;
using Thinktecture.Relay.Acknowledgement;
using Thinktecture.Relay.Server.DependencyInjection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using Thinktecture.Relay.Server.Maintenance;
using Thinktecture.Relay.Server.Persistence;

namespace Thinktecture.Relay.Server.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace Thinktecture.Relay.Server.Transport;

internal class InMemoryTenantHandlerFactory : ITenantHandlerFactory
Expand Down
2 changes: 0 additions & 2 deletions src/docker/Thinktecture.Relay.Connector.Docker/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Thinktecture.Relay.Acknowledgement;
using Thinktecture.Relay.Connector.Targets;
using Thinktecture.Relay.Transport;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
using Serilog;
using Thinktecture.Relay.Docker;
using Thinktecture.Relay.Docker.Authentication;
using Thinktecture.Relay.Server.Management;
using Thinktecture.Relay.Server.Management.Extensions;
using Thinktecture.Relay.Server.Persistence.EntityFrameworkCore;
using Thinktecture.Relay.Server.Persistence.EntityFrameworkCore.PostgreSql;

try
Expand Down Expand Up @@ -78,7 +75,7 @@
app.UseSwagger(options => options.RouteTemplate = "/docs/{DocumentName}/openapi.json");
app.UseSwaggerUI(options =>
{
options.RoutePrefix = String.Empty;
options.RoutePrefix = string.Empty;
options.SwaggerEndpoint($"/docs/{applicationName}/openapi.json", "RelayServer Example Management API");
});

Expand Down
1 change: 0 additions & 1 deletion src/docker/Thinktecture.Relay.Server.Docker/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Thinktecture.Relay.Server.Docker.Interceptors;
using Thinktecture.Relay.Server.Maintenance;
using Thinktecture.Relay.Server.Persistence.EntityFrameworkCore.PostgreSql;

namespace Thinktecture.Relay.Server.Docker;
Expand Down

0 comments on commit 488ffeb

Please sign in to comment.