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

[main] Introduce PublicApiAnalyzers to Client, Abstractions and Shared #819

Merged
merged 2 commits into from
Aug 13, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
pull_request:
branches:
- main
- vNext
- release/**
paths-ignore:
- '**.md'
- .github/**
Expand Down
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
<PackageVersion Include="PolySharp" Version="1.13.2" />
<PackageVersion Include="StackExchange.Redis" Version="2.0.601" />
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
</ItemGroup>
<!-- for tests -->
<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/MagicOnion.Abstractions/MagicOnion.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ MagicOnion.IgnoreAttribute</Description>
<ItemGroup>
<PackageReference Include="Grpc.Core.Api" />
<PackageReference Include="MessagePack" />
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
289 changes: 289 additions & 0 deletions src/MagicOnion.Abstractions/PublicAPI.Shipped.txt

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/MagicOnion.Abstractions/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#nullable enable
MagicOnion.GenerateDefineDebugAttribute
MagicOnion.GenerateDefineDebugAttribute.GenerateDefineDebugAttribute() -> void
MagicOnion.GenerateIfDirectiveAttribute
MagicOnion.GenerateIfDirectiveAttribute.GenerateIfDirectiveAttribute(string! condition) -> void
4 changes: 4 additions & 0 deletions src/MagicOnion.Client/MagicOnion.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
154 changes: 154 additions & 0 deletions src/MagicOnion.Client/PublicAPI.Shipped.txt

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/MagicOnion.Client/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#nullable enable
static MagicOnion.Client.StreamingHubClient.Connect<TStreamingHub, TReceiver>(Grpc.Core.CallInvoker! callInvoker, TReceiver receiver, string? host = null, Grpc.Core.CallOptions option = default(Grpc.Core.CallOptions), MagicOnion.Serialization.IMagicOnionSerializerProvider? serializerProvider = null, MagicOnion.Client.IStreamingHubClientFactoryProvider? factoryProvider = null, MagicOnion.Client.IMagicOnionClientLogger? logger = null) -> TStreamingHub
static MagicOnion.Client.StreamingHubClient.Connect<TStreamingHub, TReceiver>(Grpc.Core.ChannelBase! channel, TReceiver receiver, string? host = null, Grpc.Core.CallOptions option = default(Grpc.Core.CallOptions), MagicOnion.Serialization.IMagicOnionSerializerProvider? serializerProvider = null, MagicOnion.Client.IStreamingHubClientFactoryProvider? factoryProvider = null, MagicOnion.Client.IMagicOnionClientLogger? logger = null) -> TStreamingHub
MagicOnion.Client.StreamingHubClientBase<TStreamingHub, TReceiver>.__ConnectAndSubscribeAsync(TReceiver receiver, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!
11 changes: 11 additions & 0 deletions src/MagicOnion.Shared/MagicOnion.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
<Description>Provides shared classes and interfaces used by MagicOnion server and client. $(MagicOnionPackageDescription)</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PolySharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\MagicOnion.Abstractions\MagicOnion.Abstractions.csproj" />
<ProjectReference Include="..\MagicOnion.Serialization.MessagePack\MagicOnion.Serialization.MessagePack.csproj" />
Expand Down
8 changes: 8 additions & 0 deletions src/MagicOnion.Shared/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#nullable enable
const MagicOnion.MetadataExtensions.BinarySuffix = "-bin" -> string!
MagicOnion.MetadataExtensions
MagicOnion.Serialization.MagicOnionSerializerProvider
static MagicOnion.MetadataExtensions.GetOrDefault(this Grpc.Core.Metadata! metadata, string! key, bool ignoreCase = true) -> Grpc.Core.Metadata.Entry?
static MagicOnion.MetadataExtensions.GetValueOrDefault(this Grpc.Core.Metadata! metadata, string! key, bool ignoreCase = true) -> string?
static MagicOnion.Serialization.MagicOnionSerializerProvider.Default.get -> MagicOnion.Serialization.IMagicOnionSerializerProvider!
static MagicOnion.Serialization.MagicOnionSerializerProvider.Default.set -> void
1 change: 1 addition & 0 deletions src/MagicOnion.Shared/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#nullable enable
Loading