Skip to content

Commit 25ce071

Browse files
author
Meir Kriheli
committed
remove service attribute from the inheritable interface
1 parent 89775fb commit 25ce071

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/protobuf-net.Grpc.Reflection.Test/SchemaGeneration.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public interface IMyInheritedService : ISomeInheritableGenericService<MyRequest,
199199
void InheritedSyncEmpty();
200200
}
201201

202-
[ServiceInheritable][Service]
202+
[ServiceInheritable]
203203
public interface ISecondLevelInheritable : ISomeInheritableGenericService<MyRequest, MyResponse>, INotAService
204204
{
205205
ValueTask<MyResponse> InheritedUnary(MyRequest request, CallContext callContext = default);
@@ -301,11 +301,7 @@ service ConferencesService {
301301
}
302302
", proto, ignoreLineEndingDifferences: true);
303303
}
304-
305-
public interface INotAService
306-
{
307-
ValueTask<MyResponse> SomeMethod1(MyRequest request, CallContext callContext = default);
308-
}
304+
309305
[Fact]
310306
public void WhenInterfaceIsNotServiceContract_Throw()
311307
{

0 commit comments

Comments
 (0)