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
Clean up
  • Loading branch information
JamesNK committed May 26, 2025
commit d37c54dad3648c8cfd36f8d8f68aa328636a71a6
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace Grpc.AspNetCore.Server.Internal.CallHandlers;

internal abstract class ServerCallHandlerBase<[DynamicallyAccessedMembers(GrpcProtocolConstants.ServiceAccessibility)]TService, TRequest, TResponse>
internal abstract class ServerCallHandlerBase<[DynamicallyAccessedMembers(GrpcProtocolConstants.ServiceAccessibility)] TService, TRequest, TResponse>
where TService : class
where TRequest : class
where TResponse : class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ServiceRouteBuilder(

internal List<IEndpointConventionBuilder> Build(IEndpointRouteBuilder endpointRouteBuilder, object? argument)
{
ServiceRouteBuilderLog.DiscoveringServiceMethods(_logger, typeof(TService));
Log.DiscoveringServiceMethods(_logger, typeof(TService));

var serviceMethodProviderContext = new ServiceMethodProviderContext<TService>(_serverCallHandlerFactory, argument);
foreach (var serviceMethodProvider in _serviceMethodProviders)
Expand Down
33 changes: 0 additions & 33 deletions src/Shared/Server/ServerMethodInvokerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,6 @@

namespace Grpc.Shared.Server;

/// <summary>
/// Server method invoker base type for <see cref="Grpc.Core.ServerServiceDefinition"/>.
/// </summary>
/// <typeparam name="TRequest">Request message type for this method.</typeparam>
/// <typeparam name="TResponse">Response message type for this method.</typeparam>
internal abstract class ServerMethodInvokerBase<TRequest, TResponse>
where TRequest : class
where TResponse : class
{
/// <summary>
/// Gets the description of the gRPC method.
/// </summary>
public Method<TRequest, TResponse> Method { get; }

/// <summary>
/// Gets the options used to execute the method.
/// </summary>
public MethodOptions Options { get; }

/// <summary>
/// Creates a new instance of <see cref="ServerMethodInvokerBase{TRequest, TResponse}"/>.
/// </summary>
/// <param name="method">The description of the gRPC method.</param>
/// <param name="options">The options used to execute the method.</param>
private protected ServerMethodInvokerBase(
Method<TRequest, TResponse> method,
MethodOptions options)
{
Method = method;
Options = options;
}
}

/// <summary>
/// Server method invoker base type.
/// </summary>
Expand Down