@@ -13,9 +13,8 @@ public class CreateConfigBinder(
1313 Option < int > writeTimeoutOption )
1414 : BinderBase < CreateConfig >
1515{
16- protected override CreateConfig GetBoundValue ( BindingContext bindingContext )
17- {
18- return new CreateConfig (
16+ protected override CreateConfig GetBoundValue ( BindingContext bindingContext ) =>
17+ new (
1918 bindingContext . ParseResult . GetValueForArgument ( endpointArgument ) ,
2019 bindingContext . ParseResult . GetValueForArgument ( dbArgument ) ,
2120 bindingContext . ParseResult . GetValueForOption ( resourceYdbPath ) ! ,
@@ -24,7 +23,6 @@ protected override CreateConfig GetBoundValue(BindingContext bindingContext)
2423 bindingContext . ParseResult . GetValueForOption ( initialDataCountOption ) ,
2524 bindingContext . ParseResult . GetValueForOption ( writeTimeoutOption )
2625 ) ;
27- }
2826}
2927
3028internal class RunConfigBinder (
@@ -40,9 +38,8 @@ internal class RunConfigBinder(
4038 Option < int > timeOption )
4139 : BinderBase < RunConfig >
4240{
43- protected override RunConfig GetBoundValue ( BindingContext bindingContext )
44- {
45- return new RunConfig (
41+ protected override RunConfig GetBoundValue ( BindingContext bindingContext ) =>
42+ new (
4643 bindingContext . ParseResult . GetValueForArgument ( endpointArgument ) ,
4744 bindingContext . ParseResult . GetValueForArgument ( dbArgument ) ,
4845 bindingContext . ParseResult . GetValueForOption ( resourceYdbPath ) ! ,
@@ -54,5 +51,4 @@ protected override RunConfig GetBoundValue(BindingContext bindingContext)
5451 bindingContext . ParseResult . GetValueForOption ( writeTimeoutOption ) ,
5552 bindingContext . ParseResult . GetValueForOption ( timeOption )
5653 ) ;
57- }
5854}
0 commit comments