Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Seal classes
  • Loading branch information
benaadams committed Nov 15, 2022
commit 0a42dd26cec19adf2fd2ba85133727e1de70384f
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace PlatformBenchmarks;

public partial class BenchmarkApplication
public sealed partial class BenchmarkApplication
{
public static ReadOnlySpan<byte> ApplicationName => "Kestrel Platform-Level Application"u8;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PlatformBenchmarks;

internal class BatchUpdateString
internal sealed class BatchUpdateString
{
private const int MaxBatch = 500;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace PlatformBenchmarks
{
// Is semantically identical to RawDbNpgsql.cs.
// If you are changing RawDbMySqlConnector.cs, also consider changing RawDbNpgsql.cs.
public class RawDb
public sealed class RawDb
{
private readonly ConcurrentRandom _random;
private readonly string _connectionString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace PlatformBenchmarks
{
// Is semantically identical to RawDbMySqlConnector.cs.
// If you are changing RawDbNpgsql.cs, also consider changing RawDbMySqlConnector.cs.
public class RawDb
public sealed class RawDb
{
private readonly ConcurrentRandom _random;
private readonly string _connectionString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace PlatformBenchmarks;

public class ConcurrentRandom
public sealed class ConcurrentRandom
{
private static int nextSeed = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class HttpApplicationConnectionBuilderExtensions
}
}

public class HttpApplication<TConnection> where TConnection : IHttpConnection, new()
public sealed class HttpApplication<TConnection> where TConnection : IHttpConnection, new()
{
public Task ExecuteAsync(ConnectionContext connection)
{
Expand Down
2 changes: 1 addition & 1 deletion frameworks/CSharp/aspnetcore/PlatformBenchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace PlatformBenchmarks;

public class Program
public sealed class Program
{
public static string[] Args;

Expand Down
2 changes: 1 addition & 1 deletion frameworks/CSharp/aspnetcore/PlatformBenchmarks/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PlatformBenchmarks;

public class Startup
public sealed class Startup
{
public void Configure(IApplicationBuilder app)
{
Expand Down