Skip to content

Commit 40da668

Browse files
authored
Make service and interceptor activators public (#677)
1 parent 765db5d commit 40da668

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

perf/Grpc.AspNetCore.Microbenchmarks/Internal/TestGrpcServiceActivator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
using System;
2020
using System.Threading.Tasks;
21-
using Grpc.AspNetCore.Server.Internal;
21+
using Grpc.AspNetCore.Server;
2222

2323
namespace Grpc.AspNetCore.Microbenchmarks.Internal
2424
{

src/Grpc.AspNetCore.Server/Internal/GrpcActivatorHandle.cs renamed to src/Grpc.AspNetCore.Server/GrpcActivatorHandle.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
#endregion
1818

19-
namespace Grpc.AspNetCore.Server.Internal
19+
namespace Grpc.AspNetCore.Server
2020
{
2121
/// <summary>
2222
/// Handle to the activator instance.
2323
/// </summary>
2424
/// <typeparam name="T">The instance type.</typeparam>
25-
internal readonly struct GrpcActivatorHandle<T>
25+
public readonly struct GrpcActivatorHandle<T>
2626
{
2727
/// <summary>
2828
/// Creates a new instance of <see cref="GrpcActivatorHandle{T}"/>.

src/Grpc.AspNetCore.Server/Internal/IGrpcInterceptorActivator.T.cs renamed to src/Grpc.AspNetCore.Server/IGrpcInterceptorActivator.T.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
using Grpc.Core.Interceptors;
2020

21-
namespace Grpc.AspNetCore.Server.Internal
21+
namespace Grpc.AspNetCore.Server
2222
{
2323
/// <summary>
2424
/// A <typeparamref name="TInterceptor"/> activator abstraction.
2525
/// </summary>
2626
/// <typeparam name="TInterceptor">The interceptor type.</typeparam>
27-
internal interface IGrpcInterceptorActivator<TInterceptor> : IGrpcInterceptorActivator where TInterceptor : Interceptor { }
27+
public interface IGrpcInterceptorActivator<TInterceptor> : IGrpcInterceptorActivator where TInterceptor : Interceptor { }
2828
}

src/Grpc.AspNetCore.Server/Internal/IGrpcInterceptorActivator.cs renamed to src/Grpc.AspNetCore.Server/IGrpcInterceptorActivator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
using System.Threading.Tasks;
2121
using Grpc.Core.Interceptors;
2222

23-
namespace Grpc.AspNetCore.Server.Internal
23+
namespace Grpc.AspNetCore.Server
2424
{
2525
/// <summary>
2626
/// An interceptor activator abstraction.
2727
/// </summary>
28-
internal interface IGrpcInterceptorActivator
28+
public interface IGrpcInterceptorActivator
2929
{
3030
/// <summary>
3131
/// Creates an interceptor.

src/Grpc.AspNetCore.Server/Internal/IGrpcServiceActivator.cs renamed to src/Grpc.AspNetCore.Server/IGrpcServiceActivator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
using System;
2020
using System.Threading.Tasks;
2121

22-
namespace Grpc.AspNetCore.Server.Internal
22+
namespace Grpc.AspNetCore.Server
2323
{
2424
/// <summary>
2525
/// A <typeparamref name="TGrpcService"/> activator abstraction.
2626
/// </summary>
2727
/// <typeparam name="TGrpcService">The service type.</typeparam>
28-
internal interface IGrpcServiceActivator<TGrpcService> where TGrpcService : class
28+
public interface IGrpcServiceActivator<TGrpcService> where TGrpcService : class
2929
{
3030
/// <summary>
3131
/// Creates a service.

0 commit comments

Comments
 (0)