From 7d460002286ae9a3f83d7ebb783887b213f8f65e Mon Sep 17 00:00:00 2001 From: George Drak Date: Wed, 29 Nov 2023 15:30:09 +0500 Subject: [PATCH] fix(grpc): move interface out of options class --- src/Sitko.Core.Grpc.Client/GrpcClientModuleOptions.cs | 5 ----- src/Sitko.Core.Grpc.Client/IGrpcTokenProvider.cs | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 src/Sitko.Core.Grpc.Client/IGrpcTokenProvider.cs diff --git a/src/Sitko.Core.Grpc.Client/GrpcClientModuleOptions.cs b/src/Sitko.Core.Grpc.Client/GrpcClientModuleOptions.cs index 9c89db4dc..a40b9589b 100644 --- a/src/Sitko.Core.Grpc.Client/GrpcClientModuleOptions.cs +++ b/src/Sitko.Core.Grpc.Client/GrpcClientModuleOptions.cs @@ -64,9 +64,4 @@ public GrpcClientModuleOptions AddInterceptor() where TIn }; return this; } - - public interface IGrpcTokenProvider - { - Task GetTokenAsync(); - } } diff --git a/src/Sitko.Core.Grpc.Client/IGrpcTokenProvider.cs b/src/Sitko.Core.Grpc.Client/IGrpcTokenProvider.cs new file mode 100644 index 000000000..51d61e1c1 --- /dev/null +++ b/src/Sitko.Core.Grpc.Client/IGrpcTokenProvider.cs @@ -0,0 +1,6 @@ +namespace Sitko.Core.Grpc.Client; + +public interface IGrpcTokenProvider +{ + Task GetTokenAsync(); +}