|
|
@ -227,6 +227,12 @@ namespace Grpc.Testing { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// creates a new client |
|
|
|
|
|
|
|
public static TestServiceClient NewClient(Channel channel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return new TestServiceClient(channel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// creates service definition that can be registered with a server |
|
|
|
// creates service definition that can be registered with a server |
|
|
|
#pragma warning disable 0618 |
|
|
|
#pragma warning disable 0618 |
|
|
|
public static ServerServiceDefinition BindService(ITestService serviceImpl) |
|
|
|
public static ServerServiceDefinition BindService(ITestService serviceImpl) |
|
|
@ -255,12 +261,6 @@ namespace Grpc.Testing { |
|
|
|
.AddMethod(__Method_HalfDuplexCall, serviceImpl.HalfDuplexCall).Build(); |
|
|
|
.AddMethod(__Method_HalfDuplexCall, serviceImpl.HalfDuplexCall).Build(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// creates a new client |
|
|
|
|
|
|
|
public static TestServiceClient NewClient(Channel channel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return new TestServiceClient(channel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
public static class UnimplementedService |
|
|
|
public static class UnimplementedService |
|
|
|
{ |
|
|
|
{ |
|
|
@ -350,6 +350,12 @@ namespace Grpc.Testing { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// creates a new client |
|
|
|
|
|
|
|
public static UnimplementedServiceClient NewClient(Channel channel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return new UnimplementedServiceClient(channel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// creates service definition that can be registered with a server |
|
|
|
// creates service definition that can be registered with a server |
|
|
|
#pragma warning disable 0618 |
|
|
|
#pragma warning disable 0618 |
|
|
|
public static ServerServiceDefinition BindService(IUnimplementedService serviceImpl) |
|
|
|
public static ServerServiceDefinition BindService(IUnimplementedService serviceImpl) |
|
|
@ -368,12 +374,6 @@ namespace Grpc.Testing { |
|
|
|
.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall).Build(); |
|
|
|
.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall).Build(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// creates a new client |
|
|
|
|
|
|
|
public static UnimplementedServiceClient NewClient(Channel channel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return new UnimplementedServiceClient(channel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
public static class ReconnectService |
|
|
|
public static class ReconnectService |
|
|
|
{ |
|
|
|
{ |
|
|
@ -498,6 +498,12 @@ namespace Grpc.Testing { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// creates a new client |
|
|
|
|
|
|
|
public static ReconnectServiceClient NewClient(Channel channel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return new ReconnectServiceClient(channel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// creates service definition that can be registered with a server |
|
|
|
// creates service definition that can be registered with a server |
|
|
|
#pragma warning disable 0618 |
|
|
|
#pragma warning disable 0618 |
|
|
|
public static ServerServiceDefinition BindService(IReconnectService serviceImpl) |
|
|
|
public static ServerServiceDefinition BindService(IReconnectService serviceImpl) |
|
|
@ -518,12 +524,6 @@ namespace Grpc.Testing { |
|
|
|
.AddMethod(__Method_Stop, serviceImpl.Stop).Build(); |
|
|
|
.AddMethod(__Method_Stop, serviceImpl.Stop).Build(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// creates a new client |
|
|
|
|
|
|
|
public static ReconnectServiceClient NewClient(Channel channel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return new ReconnectServiceClient(channel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|