Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
efed509b
Commit
efed509b
authored
May 31, 2011
by
csharptest
Committed by
rogerk
May 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed two errors caused by incorrect merge of the rpc interface generator
parent
da4989c4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ServiceInterfaceGenerator.cs
src/ProtoGen/ServiceInterfaceGenerator.cs
+4
-4
UnitTestRpcInterop.cs
src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs
+2
-2
No files found.
src/ProtoGen/ServiceInterfaceGenerator.cs
View file @
efed509b
...
@@ -216,8 +216,8 @@ namespace Google.ProtocolBuffers.ProtoGen
...
@@ -216,8 +216,8 @@ namespace Google.ProtocolBuffers.ProtoGen
writer
.
WriteLine
(
writer
.
WriteLine
(
"public TMessage CallMethod<TMessage, TBuilder>(string methodName, pb::IMessageLite request, pb::IBuilderLite<TMessage, TBuilder> response)"
);
"public TMessage CallMethod<TMessage, TBuilder>(string methodName, pb::IMessageLite request, pb::IBuilderLite<TMessage, TBuilder> response)"
);
writer
.
WriteLine
(
" where TMessage : IMessageLite<TMessage, TBuilder>"
);
writer
.
WriteLine
(
" where TMessage :
pb::
IMessageLite<TMessage, TBuilder>"
);
writer
.
WriteLine
(
" where TBuilder : IBuilderLite<TMessage, TBuilder> {"
);
writer
.
WriteLine
(
" where TBuilder :
pb::
IBuilderLite<TMessage, TBuilder> {"
);
writer
.
Indent
();
writer
.
Indent
();
writer
.
WriteLine
(
"switch(methodName) {"
);
writer
.
WriteLine
(
"switch(methodName) {"
);
writer
.
Indent
();
writer
.
Indent
();
...
@@ -230,7 +230,7 @@ namespace Google.ProtocolBuffers.ProtoGen
...
@@ -230,7 +230,7 @@ namespace Google.ProtocolBuffers.ProtoGen
GetClassName
(
method
.
InputType
));
GetClassName
(
method
.
InputType
));
}
}
writer
.
WriteLine
(
writer
.
WriteLine
(
"default: throw new global::System.MissingMethodException(typeof(I
SearchService).FullName, methodName);"
);
"default: throw new global::System.MissingMethodException(typeof(I
{0}).FullName, methodName);"
,
Descriptor
.
Name
);
writer
.
Outdent
();
writer
.
Outdent
();
writer
.
WriteLine
(
"}"
);
//end switch
writer
.
WriteLine
(
"}"
);
//end switch
writer
.
Outdent
();
writer
.
Outdent
();
...
@@ -287,7 +287,7 @@ namespace Google.ProtocolBuffers.ProtoGen
...
@@ -287,7 +287,7 @@ namespace Google.ProtocolBuffers.ProtoGen
method
.
Name
,
GetClassName
(
method
.
InputType
),
GetClassName
(
method
.
OutputType
));
method
.
Name
,
GetClassName
(
method
.
InputType
),
GetClassName
(
method
.
OutputType
));
}
}
writer
.
WriteLine
(
writer
.
WriteLine
(
"default: throw new global::System.MissingMethodException(typeof(I
SearchService).FullName, methodName);"
);
"default: throw new global::System.MissingMethodException(typeof(I
{0}).FullName, methodName);"
,
Descriptor
.
Name
);
writer
.
Outdent
();
writer
.
Outdent
();
writer
.
WriteLine
(
"}"
);
//end switch
writer
.
WriteLine
(
"}"
);
//end switch
writer
.
Outdent
();
writer
.
Outdent
();
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs
View file @
efed509b
...
@@ -1208,8 +1208,8 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1208,8 +1208,8 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
TMessage
CallMethod
<
TMessage
,
TBuilder
>(
string
methodName
,
pb
::
IMessageLite
request
,
pb
::
IBuilderLite
<
TMessage
,
TBuilder
>
response
)
public
TMessage
CallMethod
<
TMessage
,
TBuilder
>(
string
methodName
,
pb
::
IMessageLite
request
,
pb
::
IBuilderLite
<
TMessage
,
TBuilder
>
response
)
where
TMessage
:
IMessageLite
<
TMessage
,
TBuilder
>
where
TMessage
:
pb
::
IMessageLite
<
TMessage
,
TBuilder
>
where
TBuilder
:
IBuilderLite
<
TMessage
,
TBuilder
>
{
where
TBuilder
:
pb
::
IBuilderLite
<
TMessage
,
TBuilder
>
{
switch
(
methodName
)
{
switch
(
methodName
)
{
case
"Search"
:
return
response
.
MergeFrom
(
implementation
.
Search
((
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchRequest
)
request
)).
Build
();
case
"Search"
:
return
response
.
MergeFrom
(
implementation
.
Search
((
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchRequest
)
request
)).
Build
();
case
"RefineSearch"
:
return
response
.
MergeFrom
(
implementation
.
RefineSearch
((
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RefineSearchRequest
)
request
)).
Build
();
case
"RefineSearch"
:
return
response
.
MergeFrom
(
implementation
.
RefineSearch
((
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RefineSearchRequest
)
request
)).
Build
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment