regenerate code

pull/6284/head
Jan Tattermusch 9 years ago
parent 4e0f73cddb
commit 7c0e1eec85
  1. 12
      src/csharp/Grpc.Examples/MathGrpc.cs
  2. 12
      src/csharp/Grpc.HealthCheck/HealthGrpc.cs
  3. 12
      src/csharp/Grpc.IntegrationTesting/MetricsGrpc.cs
  4. 24
      src/csharp/Grpc.IntegrationTesting/ServicesGrpc.cs
  5. 36
      src/csharp/Grpc.IntegrationTesting/TestGrpc.cs

@ -168,6 +168,12 @@ namespace Math {
} }
} }
// creates a new client
public static MathClient NewClient(Channel channel)
{
return new MathClient(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(IMath serviceImpl) public static ServerServiceDefinition BindService(IMath serviceImpl)
@ -192,12 +198,6 @@ namespace Math {
.AddMethod(__Method_Sum, serviceImpl.Sum).Build(); .AddMethod(__Method_Sum, serviceImpl.Sum).Build();
} }
// creates a new client
public static MathClient NewClient(Channel channel)
{
return new MathClient(channel);
}
} }
} }
#endregion #endregion

@ -97,6 +97,12 @@ namespace Grpc.Health.V1 {
} }
} }
// creates a new client
public static HealthClient NewClient(Channel channel)
{
return new HealthClient(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(IHealth serviceImpl) public static ServerServiceDefinition BindService(IHealth serviceImpl)
@ -115,12 +121,6 @@ namespace Grpc.Health.V1 {
.AddMethod(__Method_Check, serviceImpl.Check).Build(); .AddMethod(__Method_Check, serviceImpl.Check).Build();
} }
// creates a new client
public static HealthClient NewClient(Channel channel)
{
return new HealthClient(channel);
}
} }
} }
#endregion #endregion

@ -121,6 +121,12 @@ namespace Grpc.Testing {
} }
} }
// creates a new client
public static MetricsServiceClient NewClient(Channel channel)
{
return new MetricsServiceClient(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(IMetricsService serviceImpl) public static ServerServiceDefinition BindService(IMetricsService serviceImpl)
@ -141,12 +147,6 @@ namespace Grpc.Testing {
.AddMethod(__Method_GetGauge, serviceImpl.GetGauge).Build(); .AddMethod(__Method_GetGauge, serviceImpl.GetGauge).Build();
} }
// creates a new client
public static MetricsServiceClient NewClient(Channel channel)
{
return new MetricsServiceClient(channel);
}
} }
} }
#endregion #endregion

@ -120,6 +120,12 @@ namespace Grpc.Testing {
} }
} }
// creates a new client
public static BenchmarkServiceClient NewClient(Channel channel)
{
return new BenchmarkServiceClient(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(IBenchmarkService serviceImpl) public static ServerServiceDefinition BindService(IBenchmarkService serviceImpl)
@ -140,12 +146,6 @@ namespace Grpc.Testing {
.AddMethod(__Method_StreamingCall, serviceImpl.StreamingCall).Build(); .AddMethod(__Method_StreamingCall, serviceImpl.StreamingCall).Build();
} }
// creates a new client
public static BenchmarkServiceClient NewClient(Channel channel)
{
return new BenchmarkServiceClient(channel);
}
} }
public static class WorkerService public static class WorkerService
{ {
@ -320,6 +320,12 @@ namespace Grpc.Testing {
} }
} }
// creates a new client
public static WorkerServiceClient NewClient(Channel channel)
{
return new WorkerServiceClient(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(IWorkerService serviceImpl) public static ServerServiceDefinition BindService(IWorkerService serviceImpl)
@ -344,12 +350,6 @@ namespace Grpc.Testing {
.AddMethod(__Method_QuitWorker, serviceImpl.QuitWorker).Build(); .AddMethod(__Method_QuitWorker, serviceImpl.QuitWorker).Build();
} }
// creates a new client
public static WorkerServiceClient NewClient(Channel channel)
{
return new WorkerServiceClient(channel);
}
} }
} }
#endregion #endregion

@ -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

Loading…
Cancel
Save