diff options
author | 2015-08-09 15:37:23 -0700 | |
---|---|---|
committer | 2015-08-10 21:05:16 -0700 | |
commit | 39a9ec8954ccd13367918c615f9efd9a5aaf3b9f (patch) | |
tree | b7611986fbac6c11ac0ad60faa8a929c2a2bf863 /src/csharp/Grpc.Core/Method.cs | |
parent | 801bbeb7b461cf46fda72be9f9f0d00f6ccc0e29 (diff) |
fix preconditions class
Diffstat (limited to 'src/csharp/Grpc.Core/Method.cs')
-rw-r--r-- | src/csharp/Grpc.Core/Method.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/csharp/Grpc.Core/Method.cs b/src/csharp/Grpc.Core/Method.cs index cc047ac9f8..23004446bc 100644 --- a/src/csharp/Grpc.Core/Method.cs +++ b/src/csharp/Grpc.Core/Method.cs @@ -62,10 +62,10 @@ namespace Grpc.Core public Method(MethodType type, string serviceName, string name, Marshaller<TRequest> requestMarshaller, Marshaller<TResponse> responseMarshaller) { this.type = type; - this.serviceName = Preconditions.CheckNotNull(serviceName); - this.name = Preconditions.CheckNotNull(name); - this.requestMarshaller = Preconditions.CheckNotNull(requestMarshaller); - this.responseMarshaller = Preconditions.CheckNotNull(responseMarshaller); + this.serviceName = Preconditions.CheckNotNull(serviceName, "serviceName"); + this.name = Preconditions.CheckNotNull(name, "name"); + this.requestMarshaller = Preconditions.CheckNotNull(requestMarshaller, "requestMarshaller"); + this.responseMarshaller = Preconditions.CheckNotNull(responseMarshaller, "responseMarshaller"); this.fullName = GetFullName(serviceName); } @@ -122,7 +122,7 @@ namespace Grpc.Core /// </summary> internal string GetFullName(string serviceName) { - return "/" + Preconditions.CheckNotNull(serviceName) + "/" + this.Name; + return "/" + Preconditions.CheckNotNull(serviceName, "serviceName") + "/" + this.Name; } } } |