@@ -67,14 +67,14 @@ static int Main(string[] args)
67
67
createCommand . AddOption ( secretOption ) ;
68
68
createCommand . AddOption ( prefixOption ) ;
69
69
70
- var retentionPeriodInSecondsCommand = createCommand . Option ( "-t|--retention" ,
71
- $ "Retention Period in seconds (defaults to { DefaultConfigurationValues . RetentionPeriod . TotalSeconds } ) ", CommandOptionType . SingleValue ) ;
70
+ var retentionPeriodInSecondsCommand = createCommand . Option ( "-t|--retention" ,
71
+ $ "Retention Period in seconds (defaults to { ( int ) DefaultConfigurationValues . RetentionPeriod . TotalSeconds } ) ", CommandOptionType . SingleValue ) ;
72
72
73
- createCommand . OnExecuteAsync ( async ct =>
74
- {
75
- var endpointName = nameArgument . Value ;
76
- var retentionPeriodInSeconds = retentionPeriodInSecondsCommand . HasValue ( ) ? double . Parse ( retentionPeriodInSecondsCommand . Value ( ) ) : DefaultConfigurationValues . RetentionPeriod . TotalSeconds ;
77
- var prefix = prefixOption . HasValue ( ) ? prefixOption . Value ( ) : DefaultConfigurationValues . QueueNamePrefix ;
73
+ createCommand . OnExecuteAsync ( async ct =>
74
+ {
75
+ var endpointName = nameArgument . Value ;
76
+ var retentionPeriodInSeconds = retentionPeriodInSecondsCommand . HasValue ( ) ? int . Parse ( retentionPeriodInSecondsCommand . Value ( ) ) : ( int ) DefaultConfigurationValues . RetentionPeriod . TotalSeconds ;
77
+ var prefix = prefixOption . HasValue ( ) ? prefixOption . Value ( ) : DefaultConfigurationValues . QueueNamePrefix ;
78
78
79
79
await CommandRunner . Run ( accessKeyOption , secretOption , regionOption , ( sqs , sns , s3 ) => Endpoint . Create ( sqs , prefix , endpointName , retentionPeriodInSeconds ) ) ;
80
80
} ) ;
@@ -138,11 +138,11 @@ static int Main(string[] args)
138
138
139
139
var retentionPeriodInSecondsCommand = delayDeliverySupportCommand . Option ( "-t|--retention" , "Retention period in seconds (defaults to " + DefaultConfigurationValues . RetentionPeriod . TotalSeconds + " )." , CommandOptionType . SingleValue ) ;
140
140
141
- delayDeliverySupportCommand . OnExecuteAsync ( async ct =>
142
- {
143
- var delayInSeconds = DefaultConfigurationValues . MaximumQueueDelayTime . TotalSeconds ;
144
- var retentionPeriodInSeconds = retentionPeriodInSecondsCommand . HasValue ( ) ? double . Parse ( retentionPeriodInSecondsCommand . Value ( ) ) : DefaultConfigurationValues . RetentionPeriod . TotalSeconds ;
145
- var suffix = DefaultConfigurationValues . DelayedDeliveryQueueSuffix ;
141
+ delayDeliverySupportCommand . OnExecuteAsync ( async ct =>
142
+ {
143
+ var delayInSeconds = ( int ) DefaultConfigurationValues . MaximumQueueDelayTime . TotalSeconds ;
144
+ var retentionPeriodInSeconds = retentionPeriodInSecondsCommand . HasValue ( ) ? int . Parse ( retentionPeriodInSecondsCommand . Value ( ) ) : ( int ) DefaultConfigurationValues . RetentionPeriod . TotalSeconds ;
145
+ var suffix = DefaultConfigurationValues . DelayedDeliveryQueueSuffix ;
146
146
147
147
var endpointName = nameArgument . Value ;
148
148
var prefix = prefixOption . HasValue ( ) ? prefixOption . Value ( ) : DefaultConfigurationValues . QueueNamePrefix ;
0 commit comments