aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/Marshaller.cs
diff options
context:
space:
mode:
authorGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-03-17 09:35:19 -0700
committerGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-03-17 09:35:19 -0700
commit09eaec027ab4b3d97cb239820af98fe0c460f287 (patch)
tree150db9cb6b7d20f3022735ad7876f32080b66bf4 /src/csharp/Grpc.Core/Marshaller.cs
parent4708fbb3fb55afb6481c3737b2808c87b917a790 (diff)
parentc0b3721d61fed71a3528cecfa6797cdc26722d3a (diff)
Merge pull request #1053 from jtattermusch/csharp_metadata
Added support for sending metadata from clients.
Diffstat (limited to 'src/csharp/Grpc.Core/Marshaller.cs')
-rw-r--r--src/csharp/Grpc.Core/Marshaller.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/csharp/Grpc.Core/Marshaller.cs b/src/csharp/Grpc.Core/Marshaller.cs
index e73e7b762e..8b1a929074 100644
--- a/src/csharp/Grpc.Core/Marshaller.cs
+++ b/src/csharp/Grpc.Core/Marshaller.cs
@@ -32,6 +32,7 @@
#endregion
using System;
+using Grpc.Core.Utils;
namespace Grpc.Core
{
@@ -45,8 +46,8 @@ namespace Grpc.Core
public Marshaller(Func<T, byte[]> serializer, Func<byte[], T> deserializer)
{
- this.serializer = serializer;
- this.deserializer = deserializer;
+ this.serializer = Preconditions.CheckNotNull(serializer);
+ this.deserializer = Preconditions.CheckNotNull(deserializer);
}
public Func<T, byte[]> Serializer