Commit 9cfea1d6 authored by Jon Skeet's avatar Jon Skeet

Merge pull request #655 from jtattermusch/csharp_expose_more_info_about_service

Expose IsClientStreaming and IsServerStreaming in MethodDescriptor
parents 74810c6a fa291481
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment