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
cc8a4b38
Commit
cc8a4b38
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
disable warnings for use of our own obsolete interfaces
parent
d64be980
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/compiler/csharp_generator.cc
+4
-0
4 additions, 0 deletions
src/compiler/csharp_generator.cc
with
4 additions
and
0 deletions
src/compiler/csharp_generator.cc
+
4
−
0
View file @
cc8a4b38
...
@@ -350,10 +350,12 @@ void GenerateServerClass(Printer* out, const ServiceDescriptor *service) {
...
@@ -350,10 +350,12 @@ void GenerateServerClass(Printer* out, const ServiceDescriptor *service) {
void
GenerateClientStub
(
Printer
*
out
,
const
ServiceDescriptor
*
service
)
{
void
GenerateClientStub
(
Printer
*
out
,
const
ServiceDescriptor
*
service
)
{
out
->
Print
(
"// client stub
\n
"
);
out
->
Print
(
"// client stub
\n
"
);
out
->
Print
(
"#pragma warning disable 0618
\n
"
);
out
->
Print
(
out
->
Print
(
"public class $name$ : ClientBase<$name$>, $interface$
\n
"
,
"public class $name$ : ClientBase<$name$>, $interface$
\n
"
,
"name"
,
GetClientClassName
(
service
),
"name"
,
GetClientClassName
(
service
),
"interface"
,
GetClientInterfaceName
(
service
));
"interface"
,
GetClientInterfaceName
(
service
));
out
->
Print
(
"#pragma warning restore 0618
\n
"
);
out
->
Print
(
"{
\n
"
);
out
->
Print
(
"{
\n
"
);
out
->
Indent
();
out
->
Indent
();
...
@@ -480,10 +482,12 @@ void GenerateBindServiceMethod(Printer* out, const ServiceDescriptor *service,
...
@@ -480,10 +482,12 @@ void GenerateBindServiceMethod(Printer* out, const ServiceDescriptor *service,
bool
use_server_class
)
{
bool
use_server_class
)
{
out
->
Print
(
out
->
Print
(
"// creates service definition that can be registered with a server
\n
"
);
"// creates service definition that can be registered with a server
\n
"
);
out
->
Print
(
"#pragma warning disable 0618
\n
"
);
out
->
Print
(
out
->
Print
(
"public static ServerServiceDefinition BindService($interface$ serviceImpl)
\n
"
,
"public static ServerServiceDefinition BindService($interface$ serviceImpl)
\n
"
,
"interface"
,
use_server_class
?
GetServerClassName
(
service
)
:
"interface"
,
use_server_class
?
GetServerClassName
(
service
)
:
GetServerInterfaceName
(
service
));
GetServerInterfaceName
(
service
));
out
->
Print
(
"#pragma warning restore 0618
\n
"
);
out
->
Print
(
"{
\n
"
);
out
->
Print
(
"{
\n
"
);
out
->
Indent
();
out
->
Indent
();
...
...
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