Skip to content

Commit 49c35af

Browse files
committed
Changed: Fixed large buffer rent caused by the default implementation of Stream.Read(Span<byte>)
Changed: Nuget package publishing Changed: Bump package version Removed: qodana.yml Removed: NOTICE.md reference Signed-off-by: JOSE FUXA <[email protected]>
1 parent 40efe71 commit 49c35af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+304
-214
lines changed

.editorconfig

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# EditorConfig is awesome:
2-
http://EditorConfig.org
1+
# EditorConfig is awesome: http://EditorConfig.org
32

43
# top-most EditorConfig file
54
root = true
@@ -12,6 +11,8 @@ trim_trailing_whitespace = true
1211

1312
# C# files
1413
[*.cs]
14+
charset = utf-8
15+
1516
# New line preferences
1617
csharp_new_line_before_open_brace = none
1718
csharp_new_line_before_catch = false
@@ -21,6 +22,13 @@ csharp_new_line_before_members_in_anonymous_types = false
2122
csharp_new_line_before_members_in_object_initializers = false
2223
csharp_new_line_within_query_expression_clauses = true
2324

25+
# use file-scoped namespaces
26+
csharp_style_namespace_declarations = file_scoped
27+
dotnet_diagnostic.IDE0161.severity = error
28+
29+
# use ValueTasks correctly
30+
dotnet_diagnostic.CA2012.severity = error
31+
2432
# Indentation preferences
2533
csharp_indent_block_contents = true
2634
csharp_indent_braces = false

.github/workflows/qodana.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
push:
44
tags:
55
- "v*"
6+
7+
permissions:
8+
contents: read
9+
packages: write
10+
611
jobs:
712
release:
813
runs-on: ubuntu-latest
@@ -22,7 +27,7 @@ jobs:
2227
- name: Build, Pack and Publish
2328
run: |
2429
dotnet pack /p:Version=${{ steps.get_version.outputs.version }} -o artefacts -c Release src/EventStore.Plugins/EventStore.Plugins.csproj
25-
dotnet nuget push artefacts/EventStore.Plugins.${{ steps.get_version.outputs.version }}.nupkg -k ${{ secrets.nugetkey }} -s https://api.nuget.org/v3/index.json
30+
dotnet nuget push artefacts/EventStore.Plugins.${{ steps.get_version.outputs.version }}.nupkg --api-key "${{ secrets.GITHUB_TOKEN }}" --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
2631
- name: Create Release
2732
id: create_release
2833
uses: actions/create-release@v1

EventStore.Plugins.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1212
.editorconfig = .editorconfig
1313
.gitignore = .gitignore
1414
LICENSE.md = LICENSE.md
15-
NOTICE.md = NOTICE.md
1615
qodana.yaml = qodana.yaml
1716
README.md = README.md
1817
EndProjectSection

src/EventStore.Plugins/Authentication/AuthenticationProviderBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace EventStore.Plugins.Authentication;
44

55
public abstract class AuthenticationProviderBase(PluginOptions options) : Plugin(options), IAuthenticationProvider {
66
protected AuthenticationProviderBase(
7-
string? name = null,
7+
string? name = null,
88
string? version = null,
99
string? licensePublicKey = null,
1010
string? diagnosticsName = null,
@@ -22,8 +22,8 @@ protected AuthenticationProviderBase(
2222
public abstract void Authenticate(AuthenticationRequest authenticationRequest);
2323

2424
public virtual IEnumerable<KeyValuePair<string, string>> GetPublicProperties() => [];
25-
25+
2626
public virtual void ConfigureEndpoints(IEndpointRouteBuilder endpointRouteBuilder) { }
2727

2828
public virtual IReadOnlyList<string> GetSupportedAuthenticationSchemes() => [];
29-
}
29+
}

src/EventStore.Plugins/Authentication/AuthenticationRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Security.Claims;
1+
using System.Security.Claims;
22

33
namespace EventStore.Plugins.Authentication;
44

@@ -66,4 +66,4 @@ protected AuthenticationRequest(string? id, IReadOnlyDictionary<string, string>?
6666
/// The authentication provider is not yet ready to service the request
6767
/// </summary>
6868
public abstract void NotReady();
69-
}
69+
}

src/EventStore.Plugins/Authentication/HttpAuthenticationRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ public override void NotReady() =>
5858

5959
public Task<(HttpAuthenticationRequestStatus, ClaimsPrincipal?)> AuthenticateAsync() =>
6060
_tcs.Task;
61-
}
61+
}

src/EventStore.Plugins/Authentication/IAuthenticationPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace EventStore.Plugins.Authentication;
1+
namespace EventStore.Plugins.Authentication;
22

33
public interface IAuthenticationPlugin {
44
string Name { get; }
@@ -10,4 +10,4 @@ public interface IAuthenticationPlugin {
1010
/// </summary>
1111
/// <param name="authenticationConfigPath">The path to the configuration file for the authentication plugin</param>
1212
IAuthenticationProviderFactory GetAuthenticationProviderFactory(string authenticationConfigPath);
13-
}
13+
}

src/EventStore.Plugins/Authentication/IAuthenticationProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Microsoft.AspNetCore.Routing;
1+
using Microsoft.AspNetCore.Routing;
22

33
namespace EventStore.Plugins.Authentication;
44

@@ -30,4 +30,4 @@ public interface IAuthenticationProvider : IPlugableComponent {
3030
/// Get supported authentication schemes.
3131
/// </summary>
3232
IReadOnlyList<string> GetSupportedAuthenticationSchemes();
33-
}
33+
}

src/EventStore.Plugins/Authentication/IAuthenticationProviderFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ public interface IAuthenticationProviderFactory {
88
/// Whether the Authentication Provider should log failed authentication attempts
99
/// </param>
1010
IAuthenticationProvider Build(bool logFailedAuthenticationAttempts);
11-
}
11+
}

0 commit comments

Comments
 (0)