Skip to content

Commit

Permalink
Feedbackg
Browse files Browse the repository at this point in the history
  • Loading branch information
John Luo committed Jun 11, 2019
1 parent 9b3c9e3 commit a0adb50
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/csharp/Grpc.Tools/build/_grpc/Grpc.CSharp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,16 @@
</EnumProperty.DataSource>
</EnumProperty>

<EnumProperty Name="ClientBaseType" DisplayName="gRPC Client Base Type"
Category="gRPC" Default="ClientBase"
Description="The base type to use for the client.">
<EnumValue Name="ClientBase" DisplayName="Use ClientBase" />
<EnumValue Name="LiteClientBase" DisplayName="Use LiteClientBase" />
<EnumProperty.DataSource>
<DataSource ItemType="Protobuf" SourceOfDefaultValue="AfterContext"
PersistenceStyle="Attribute" />
</EnumProperty.DataSource>
</EnumProperty>

</Rule>
</ProjectSchemaDefinitions>
4 changes: 3 additions & 1 deletion src/csharp/Grpc.Tools/build/_grpc/_Grpc.Tools.targets
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@
</Protobuf_Compile>
<Protobuf_Compile Condition=" '%(Protobuf_Compile.GrpcServices)' == 'Client' ">
<_GrpcOutputOptions>%(Protobuf_Compile._GrpcOutputOptions);no_server</_GrpcOutputOptions>
<_GrpcOutputOptions Condition=" '%(Protobuf_Compile.ClientType)' == 'LiteClient' ">%(Protobuf_Compile._GrpcOutputOptions);lite_client</_GrpcOutputOptions>
</Protobuf_Compile>
<Protobuf_Compile Condition=" '%(Protobuf_Compile.GrpcServices)' == 'Server' ">
<_GrpcOutputOptions>%(Protobuf_Compile._GrpcOutputOptions);no_client</_GrpcOutputOptions>
</Protobuf_Compile>
<Protobuf_Compile Condition=" '%(Protobuf_Compile.GrpcServices)' == 'Client' or '%(Protobuf_Compile.GrpcServices)' == 'Both' ">
<_GrpcOutputOptions Condition=" '%(Protobuf_Compile.ClientBaseType)' == 'LiteClientBase' ">%(Protobuf_Compile._GrpcOutputOptions);lite_client</_GrpcOutputOptions>
</Protobuf_Compile>
</ItemGroup>
</Target>
</Project>

0 comments on commit a0adb50

Please sign in to comment.