Commit cc827ea 1 parent 11aea23 commit cc827ea Copy full SHA for cc827ea
File tree 4 files changed +66
-13
lines changed
4 files changed +66
-13
lines changed Original file line number Diff line number Diff line change 146
146
<ItemGroup Condition =" '$(TargetFramework)' != 'netstandard1.3' and '$(TargetFramework)' != 'net451' and '$(TargetFramework)' != 'net452' and '$(TargetFramework)' != 'net46' and '$(TargetFramework)' != 'net461'" >
147
147
<PackageReference Include =" GraphQL.NewtonsoftJson" Version =" 8.2.1" />
148
148
<PackageReference Include =" MimeKitLite" Version =" 4.1.0.1" />
149
- <PackageReference Include =" ProtoBufJsonConverter" Version =" 0.6.0 " />
149
+ <PackageReference Include =" ProtoBufJsonConverter" Version =" 0.7.0-preview-02 " />
150
150
</ItemGroup >
151
151
152
152
<ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.1' " >
Original file line number Diff line number Diff line change @@ -227,8 +227,8 @@ public async Task WireMockServer_WithBodyAsProtoBuf_WithWellKnownTypes_Timestamp
227
227
{
228
228
ts = new
229
229
{
230
- seconds = 1722301323 ,
231
- nanos = 12300
230
+ Seconds = 1722301323 ,
231
+ Nanos = 12300
232
232
}
233
233
}
234
234
)
@@ -269,8 +269,8 @@ public async Task WireMockServer_WithBodyAsProtoBuf_WithWellKnownTypes_Duration(
269
269
{
270
270
du = new
271
271
{
272
- seconds = 1722301323 ,
273
- nanos = 12300
272
+ Seconds = 1722301323 ,
273
+ Nanos = 12300
274
274
}
275
275
}
276
276
)
@@ -539,12 +539,12 @@ public async Task WireMockServer_WithBodyAsProtoBuf_WithWellKnownTypes_Timestamp
539
539
. WithHeader ( "Content-Type" , "application/grpc" )
540
540
. WithTrailingHeader ( "grpc-status" , "0" )
541
541
. WithBodyAsProtoBuf ( definition , "greet.MyMessageTimestamp" ,
542
- new
542
+ new MyMessageTimestamp
543
543
{
544
- ts = new
544
+ Ts = new Timestamp
545
545
{
546
- seconds ,
547
- nanos
546
+ Seconds = seconds ,
547
+ Nanos = nanos
548
548
}
549
549
}
550
550
)
@@ -580,12 +580,12 @@ public async Task WireMockServer_WithBodyAsProtoBuf_WithWellKnownTypes_Duration_
580
580
. WithHeader ( "Content-Type" , "application/grpc" )
581
581
. WithTrailingHeader ( "grpc-status" , "0" )
582
582
. WithBodyAsProtoBuf ( definition , "greet.MyMessageDuration" ,
583
- new
583
+ new MyMessageDuration
584
584
{
585
- du = new
585
+ Du = new Duration
586
586
{
587
- seconds ,
588
- nanos
587
+ Seconds = seconds ,
588
+ Nanos = nanos
589
589
}
590
590
}
591
591
)
Original file line number Diff line number Diff line change
1
+ syntax = "proto3" ;
2
+
3
+ import "google/protobuf/timestamp.proto" ;
4
+
5
+ package Policy2 ;
6
+
7
+ service PolicyService2 {
8
+ rpc GetVersion (GetVersionRequest ) returns (GetVersionResponse );
9
+ rpc GetVersion2 (GetVersion2Request ) returns (GetVersion2Response );
10
+ }
11
+
12
+ // REQUEST/RESPONSE DEFINITIONS
13
+
14
+ message GetVersion2Request {
15
+ Client Client = 1 ;
16
+
17
+ }
18
+ message GetVersion2Response {
19
+ string Version = 1 ;
20
+
21
+ }
22
+ message GetVersionRequest {
23
+ Client Client = 1 ;
24
+
25
+ }
26
+ message GetVersionResponse {
27
+ string Version = 1 ;
28
+ google.protobuf.Timestamp DateHired = 2 ;
29
+ }
30
+
31
+ message Client {
32
+ string CorrelationId = 1 ;
33
+ enum Clients {
34
+ Unknown = 0 ;
35
+ QMS = 1 ;
36
+ BillingCenter = 2 ;
37
+ PAS = 3 ;
38
+ Payroll = 4 ;
39
+ Portal = 5 ;
40
+ SFO = 6 ;
41
+ QuoteAndBind = 7 ;
42
+ LegacyConversion = 8 ;
43
+ BindNow = 9 ;
44
+ PaymentPortal = 10 ;
45
+ PricingEngine = 11 ;
46
+ }
47
+ Clients ClientName = 2 ;
48
+ }
Original file line number Diff line number Diff line change 113
113
</PackageReference >
114
114
115
115
<Protobuf Include =" Grpc\greet.proto" GrpcServices =" Client" />
116
+ <Protobuf Include =" Grpc\policy.proto" GrpcServices =" Client" />
116
117
</ItemGroup >
117
118
118
119
<ItemGroup Condition =" '$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0' or '$(TargetFramework)' == 'net8.0'" >
132
133
<None Update =" cert.pem" >
133
134
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
134
135
</None >
136
+ <None Update =" Grpc\policy.proto" >
137
+ <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
138
+ <GrpcServices >Client</GrpcServices >
139
+ </None >
135
140
<None Update =" Grpc\greet.proto" >
136
141
<GrpcServices >Client</GrpcServices >
137
142
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
You can’t perform that action at this time.
0 commit comments