Skip to content

Commit

Permalink
fix time config parsing
Browse files Browse the repository at this point in the history
fixes #115
  • Loading branch information
SimonCropp committed Aug 11, 2015
1 parent cfc1629 commit 823918a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NServiceBus.NHibernate/Outbox/NHibernateOutboxStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected override void OnStart()
}
else
{
if (TimeSpan.TryParse(configValue, out timeToKeepDeduplicationData))
if (!TimeSpan.TryParse(configValue, out timeToKeepDeduplicationData))
{
throw new Exception("Invalid value in \"NServiceBus/Outbox/NHibernate/TimeToKeepDeduplicationData\" AppSetting. Please ensure it is a TimeSpan.");
}
Expand All @@ -69,7 +69,7 @@ protected override void OnStart()
}
else
{
if (TimeSpan.TryParse(configValue, out frequencyToRunDeduplicationDataCleanup))
if (!TimeSpan.TryParse(configValue, out frequencyToRunDeduplicationDataCleanup))
{
throw new Exception("Invalid value in \"NServiceBus/Outbox/NHibernate/FrequencyToRunDeduplicationDataCleanup\" AppSetting. Please ensure it is a TimeSpan.");
}
Expand Down

1 comment on commit 823918a

@SzymonPobiega
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.