diff options
author | Jon Skeet <skeet@pobox.com> | 2015-07-30 06:46:53 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2015-07-30 06:46:53 +0100 |
commit | 9cfea1d6f6b81462021b928f45c732cd9920d869 (patch) | |
tree | b011f577bbe6b13180c3d588090fccadacccaec6 /csharp | |
parent | 74810c6ae3219498dd3e856f9cd251588c92a899 (diff) | |
parent | fa291481375df3d81fdc864f4b0cb9d068cb3324 (diff) | |
download | protobuf-9cfea1d6f6b81462021b928f45c732cd9920d869.tar.gz protobuf-9cfea1d6f6b81462021b928f45c732cd9920d869.tar.bz2 protobuf-9cfea1d6f6b81462021b928f45c732cd9920d869.zip |
Merge pull request #655 from jtattermusch/csharp_expose_more_info_about_service
Expose IsClientStreaming and IsServerStreaming in MethodDescriptor
Diffstat (limited to 'csharp')
-rw-r--r-- | csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs index 0c9c6949..f9539f6c 100644 --- a/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs @@ -57,6 +57,16 @@ namespace Google.Protobuf.Reflection /// </value> public MessageDescriptor OutputType { get { return outputType; } } + /// <value> + /// Indicates if client streams multiple requests. + /// </value> + public bool IsClientStreaming { get { return proto.ClientStreaming; } } + + /// <value> + /// Indicates if server streams multiple responses. + /// </value> + public bool IsServerStreaming { get { return proto.ServerStreaming; } } + internal MethodDescriptor(MethodDescriptorProto proto, FileDescriptor file, ServiceDescriptor parent, int index) : base(file, parent.FullName + "." + proto.Name, index) |