Commit afff2c65 authored by csharptest's avatar csharptest Committed by rogerk

Fixed A few last methods taking CodedInputStream

parent 579bb3de
...@@ -274,7 +274,7 @@ namespace Google.ProtocolBuffers.ProtoGen ...@@ -274,7 +274,7 @@ namespace Google.ProtocolBuffers.ProtoGen
writer.WriteLine(); writer.WriteLine();
writer.WriteLine( writer.WriteLine(
"public pb::IMessageLite CallMethod(string methodName, pb::CodedInputStream input, pb::ExtensionRegistry registry) {{", "public pb::IMessageLite CallMethod(string methodName, pb::ICodedInputStream input, pb::ExtensionRegistry registry) {{",
Descriptor.Name); Descriptor.Name);
writer.Indent(); writer.Indent();
writer.WriteLine("switch(methodName) {"); writer.WriteLine("switch(methodName) {");
......
...@@ -1305,7 +1305,7 @@ namespace Google.ProtocolBuffers.TestProtos { ...@@ -1305,7 +1305,7 @@ namespace Google.ProtocolBuffers.TestProtos {
if (dispose) ((global::System.IDisposable)implementation).Dispose(); if (dispose) ((global::System.IDisposable)implementation).Dispose();
} }
public pb::IMessageLite CallMethod(string methodName, pb::CodedInputStream input, pb::ExtensionRegistry registry) { public pb::IMessageLite CallMethod(string methodName, pb::ICodedInputStream input, pb::ExtensionRegistry registry) {
switch(methodName) { switch(methodName) {
case "Search": return implementation.CallMethod(methodName, global::Google.ProtocolBuffers.TestProtos.SearchRequest.ParseFrom(input, registry), global::Google.ProtocolBuffers.TestProtos.SearchResponse.CreateBuilder()); case "Search": return implementation.CallMethod(methodName, global::Google.ProtocolBuffers.TestProtos.SearchRequest.ParseFrom(input, registry), global::Google.ProtocolBuffers.TestProtos.SearchResponse.CreateBuilder());
case "RefineSearch": return implementation.CallMethod(methodName, global::Google.ProtocolBuffers.TestProtos.RefineSearchRequest.ParseFrom(input, registry), global::Google.ProtocolBuffers.TestProtos.SearchResponse.CreateBuilder()); case "RefineSearch": return implementation.CallMethod(methodName, global::Google.ProtocolBuffers.TestProtos.RefineSearchRequest.ParseFrom(input, registry), global::Google.ProtocolBuffers.TestProtos.SearchResponse.CreateBuilder());
......
...@@ -77,7 +77,7 @@ namespace Google.ProtocolBuffers ...@@ -77,7 +77,7 @@ namespace Google.ProtocolBuffers
/// <summary> /// <summary>
/// Parses a message of the given type from the given stream. /// Parses a message of the given type from the given stream.
/// </summary> /// </summary>
public static DynamicMessage ParseFrom(MessageDescriptor type, CodedInputStream input) public static DynamicMessage ParseFrom(MessageDescriptor type, ICodedInputStream input)
{ {
Builder builder = CreateBuilder(type); Builder builder = CreateBuilder(type);
Builder dynamicBuilder = builder.MergeFrom(input); Builder dynamicBuilder = builder.MergeFrom(input);
...@@ -91,7 +91,7 @@ namespace Google.ProtocolBuffers ...@@ -91,7 +91,7 @@ namespace Google.ProtocolBuffers
/// <param name="input"></param> /// <param name="input"></param>
/// <param name="extensionRegistry"></param> /// <param name="extensionRegistry"></param>
/// <returns></returns> /// <returns></returns>
public static DynamicMessage ParseFrom(MessageDescriptor type, CodedInputStream input, public static DynamicMessage ParseFrom(MessageDescriptor type, ICodedInputStream input,
ExtensionRegistry extensionRegistry) ExtensionRegistry extensionRegistry)
{ {
Builder builder = CreateBuilder(type); Builder builder = CreateBuilder(type);
......
...@@ -43,7 +43,7 @@ namespace Google.ProtocolBuffers ...@@ -43,7 +43,7 @@ namespace Google.ProtocolBuffers
/// </summary> /// </summary>
public interface IRpcServerStub public interface IRpcServerStub
{ {
IMessageLite CallMethod(string methodName, CodedInputStream input, ExtensionRegistry registry); IMessageLite CallMethod(string methodName, ICodedInputStream input, ExtensionRegistry registry);
} }
public interface IRpcDispatch public interface IRpcDispatch
......
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