diff options
author | Jon Skeet <skeet@pobox.com> | 2015-04-29 20:59:44 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2015-04-29 20:59:44 +0100 |
commit | a449f66bdb50f3e898889705945fb1ac6b105469 (patch) | |
tree | 87a1bb05e7a05d5fc0b2eb5046f637e64b0b3ec2 /csharp/src/ProtocolBuffers.Serialization/Extensions.cs | |
parent | 32ead755d1f97e414f4a50edb7d9f1ebd9cab562 (diff) | |
parent | 0e916d09a3fa272399b38f09b5509e0e2445e7fb (diff) | |
download | protobuf-a449f66bdb50f3e898889705945fb1ac6b105469.tar.gz protobuf-a449f66bdb50f3e898889705945fb1ac6b105469.tar.bz2 protobuf-a449f66bdb50f3e898889705945fb1ac6b105469.zip |
Merge pull request #317 from jskeet/csharp
Tidying up the C# runtime project
Diffstat (limited to 'csharp/src/ProtocolBuffers.Serialization/Extensions.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers.Serialization/Extensions.cs | 28 |
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
}
}
|