Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
e1bee5bd
Commit
e1bee5bd
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
improve comments in math.proto
parent
49fb84ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/csharp/Grpc.Examples/MathGrpc.cs
+13
-13
13 additions, 13 deletions
src/csharp/Grpc.Examples/MathGrpc.cs
src/proto/math/math.proto
+3
-3
3 additions, 3 deletions
src/proto/math/math.proto
with
16 additions
and
16 deletions
src/csharp/Grpc.Examples/MathGrpc.cs
+
13
−
13
View file @
e1bee5bd
...
...
@@ -85,8 +85,8 @@ namespace Math {
public
abstract
class
MathBase
{
/// <summary>
/// Div divides
a
rgs.dividend by
a
rgs.divisor and returns the quotient
and
/// remainder.
/// Div divides
DivA
rgs.dividend by
DivA
rgs.divisor and returns the quotient
///
and
remainder.
/// </summary>
public
virtual
global
::
System
.
Threading
.
Tasks
.
Task
<
global
::
Math
.
DivReply
>
Div
(
global
::
Math
.
DivArgs
request
,
ServerCallContext
context
)
{
...
...
@@ -105,7 +105,7 @@ namespace Math {
}
/// <summary>
/// Fib generates numbers in the Fibonacci sequence. If
a
rgs.limit > 0, Fib
/// Fib generates numbers in the Fibonacci sequence. If
FibA
rgs.limit > 0, Fib
/// generates up to limit numbers; otherwise it continues until the call is
/// canceled. Unlike Fib above, Fib has no final FibReply.
/// </summary>
...
...
@@ -144,32 +144,32 @@ namespace Math {
}
/// <summary>
/// Div divides
a
rgs.dividend by
a
rgs.divisor and returns the quotient
and
/// remainder.
/// Div divides
DivA
rgs.dividend by
DivA
rgs.divisor and returns the quotient
///
and
remainder.
/// </summary>
public
virtual
global
::
Math
.
DivReply
Div
(
global
::
Math
.
DivArgs
request
,
Metadata
headers
=
null
,
DateTime
?
deadline
=
null
,
CancellationToken
cancellationToken
=
default
(
CancellationToken
))
{
return
Div
(
request
,
new
CallOptions
(
headers
,
deadline
,
cancellationToken
));
}
/// <summary>
/// Div divides
a
rgs.dividend by
a
rgs.divisor and returns the quotient
and
/// remainder.
/// Div divides
DivA
rgs.dividend by
DivA
rgs.divisor and returns the quotient
///
and
remainder.
/// </summary>
public
virtual
global
::
Math
.
DivReply
Div
(
global
::
Math
.
DivArgs
request
,
CallOptions
options
)
{
return
CallInvoker
.
BlockingUnaryCall
(
__Method_Div
,
null
,
options
,
request
);
}
/// <summary>
/// Div divides
a
rgs.dividend by
a
rgs.divisor and returns the quotient
and
/// remainder.
/// Div divides
DivA
rgs.dividend by
DivA
rgs.divisor and returns the quotient
///
and
remainder.
/// </summary>
public
virtual
AsyncUnaryCall
<
global
::
Math
.
DivReply
>
DivAsync
(
global
::
Math
.
DivArgs
request
,
Metadata
headers
=
null
,
DateTime
?
deadline
=
null
,
CancellationToken
cancellationToken
=
default
(
CancellationToken
))
{
return
DivAsync
(
request
,
new
CallOptions
(
headers
,
deadline
,
cancellationToken
));
}
/// <summary>
/// Div divides
a
rgs.dividend by
a
rgs.divisor and returns the quotient
and
/// remainder.
/// Div divides
DivA
rgs.dividend by
DivA
rgs.divisor and returns the quotient
///
and
remainder.
/// </summary>
public
virtual
AsyncUnaryCall
<
global
::
Math
.
DivReply
>
DivAsync
(
global
::
Math
.
DivArgs
request
,
CallOptions
options
)
{
...
...
@@ -196,7 +196,7 @@ namespace Math {
return
CallInvoker
.
AsyncDuplexStreamingCall
(
__Method_DivMany
,
null
,
options
);
}
/// <summary>
/// Fib generates numbers in the Fibonacci sequence. If
a
rgs.limit > 0, Fib
/// Fib generates numbers in the Fibonacci sequence. If
FibA
rgs.limit > 0, Fib
/// generates up to limit numbers; otherwise it continues until the call is
/// canceled. Unlike Fib above, Fib has no final FibReply.
/// </summary>
...
...
@@ -205,7 +205,7 @@ namespace Math {
return
Fib
(
request
,
new
CallOptions
(
headers
,
deadline
,
cancellationToken
));
}
/// <summary>
/// Fib generates numbers in the Fibonacci sequence. If
a
rgs.limit > 0, Fib
/// Fib generates numbers in the Fibonacci sequence. If
FibA
rgs.limit > 0, Fib
/// generates up to limit numbers; otherwise it continues until the call is
/// canceled. Unlike Fib above, Fib has no final FibReply.
/// </summary>
...
...
This diff is collapsed.
Click to expand it.
src/proto/math/math.proto
+
3
−
3
View file @
e1bee5bd
...
...
@@ -55,8 +55,8 @@ message FibReply {
}
service
Math
{
// Div divides
a
rgs.dividend by
a
rgs.divisor and returns the quotient
and
// remainder.
// Div divides
DivA
rgs.dividend by
DivA
rgs.divisor and returns the quotient
//
and
remainder.
rpc
Div
(
DivArgs
)
returns
(
DivReply
)
{
}
...
...
@@ -67,7 +67,7 @@ service Math {
rpc
DivMany
(
stream
DivArgs
)
returns
(
stream
DivReply
)
{
}
// Fib generates numbers in the Fibonacci sequence. If
a
rgs.limit > 0, Fib
// Fib generates numbers in the Fibonacci sequence. If
FibA
rgs.limit > 0, Fib
// generates up to limit numbers; otherwise it continues until the call is
// canceled. Unlike Fib above, Fib has no final FibReply.
rpc
Fib
(
FibArgs
)
returns
(
stream
Num
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment