aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers.Serialization
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-04-29 08:55:07 +0100
committerJon Skeet <jonskeet@google.com>2015-04-29 08:55:07 +0100
commitcc058e1118d35c8b2fd2298841c40f9303e6ce09 (patch)
tree3f7d41aa06b82dfa67be42f0dce1fa58282f4d00 /csharp/src/ProtocolBuffers.Serialization
parente8310aa25940f9e062b8352e1d485bb804aba714 (diff)
downloadprotobuf-cc058e1118d35c8b2fd2298841c40f9303e6ce09.tar.gz
protobuf-cc058e1118d35c8b2fd2298841c40f9303e6ce09.tar.bz2
protobuf-cc058e1118d35c8b2fd2298841c40f9303e6ce09.zip
Remove RPC support.
It is expected that third parties will generate service/RPC code themselves - see gRPC as an example.
Diffstat (limited to 'csharp/src/ProtocolBuffers.Serialization')
-rw-r--r--csharp/src/ProtocolBuffers.Serialization/Extensions.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/csharp/src/ProtocolBuffers.Serialization/Extensions.cs b/csharp/src/ProtocolBuffers.Serialization/Extensions.cs
index 8aef0a9e..63ac98d8 100644
--- a/csharp/src/ProtocolBuffers.Serialization/Extensions.cs
+++ b/csharp/src/ProtocolBuffers.Serialization/Extensions.cs
@@ -181,33 +181,5 @@ namespace Google.ProtocolBuffers
}
#endregion
- #region IRpcServerStub Extensions
-
- /// <summary>
- /// Used to implement a service endpoint on an HTTP server. This works with services generated with the
- /// service_generator_type option set to IRPCDISPATCH.
- /// </summary>
- /// <param name="stub">The service execution stub</param>
- /// <param name="methodName">The name of the method being invoked</param>
- /// <param name="options">optional arguments for the format reader/writer</param>
- /// <param name="contentType">The mime type for the input stream</param>
- /// <param name="input">The input stream</param>
- /// <param name="responseType">The mime type for the output stream</param>
- /// <param name="output">The output stream</param>
- public static void HttpCallMethod(
-#if !NOEXTENSIONS
- this
-#endif
- IRpcServerStub stub, string methodName, MessageFormatOptions options,
- string contentType, Stream input, string responseType, Stream output)
- {
- ICodedInputStream codedInput = MessageFormatFactory.CreateInputStream(options, contentType, input);
- codedInput.ReadMessageStart();
- IMessageLite response = stub.CallMethod(methodName, codedInput, options.ExtensionRegistry);
- codedInput.ReadMessageEnd();
- WriteTo(response, options, responseType, output);
- }
-
- #endregion
}
}