Skip to content

Commit

Permalink
remove redundant recoverable
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 8, 2015
1 parent 68c3e0b commit cf6da8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Snippets/Operations/SqlServer/ErrorQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class MessageToRetry
{
public Guid Id;
public string Headers;
public bool Recoverable;
public byte[] Body;
}

Expand All @@ -71,7 +70,7 @@ static void RetryMessage(string connectionString, string queueName, MessageToRet
parameters.Add("Id", SqlDbType.UniqueIdentifier).Value = messageToRetry.Id;
parameters.Add("Headers", SqlDbType.VarChar).Value = messageToRetry.Headers;
parameters.Add("Body", SqlDbType.VarBinary).Value = messageToRetry.Body;
parameters.Add("Recoverable", SqlDbType.Bit).Value = messageToRetry.Recoverable;
parameters.Add("Recoverable", SqlDbType.Bit).Value = true;
command.ExecuteNonQuery();
}
}
Expand All @@ -82,7 +81,6 @@ static MessageToRetry ReadAndDelete(string connectionString, string queueName, G
string sql = string.Format(
@"DELETE FROM [{0}]
OUTPUT
DELETED.Recoverable,
DELETED.Headers,
DELETED.Body
WHERE Id = @Id", queueName);
Expand All @@ -102,9 +100,8 @@ static MessageToRetry ReadAndDelete(string connectionString, string queueName, G
return new MessageToRetry
{
Id = messageId,
Recoverable = reader.GetBoolean(0),
Headers = reader.GetString(1),
Body = reader.GetSqlBinary(2).Value
Headers = reader.GetString(0),
Body = reader.GetSqlBinary(1).Value
};
}
}
Expand Down
1 change: 0 additions & 1 deletion nservicebus/gateway/multi-site-deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ Then at configuration time:

<!-- import GatewaySitesAppConfig -->


NServiceBus automatically sets the required headers that enable you to send messages back over the gateway using the familiar `Bus.Reply`.

NOTE: All cross-site interactions are performed internally to a service, so publish and subscribe are not supported across gateways.
Expand Down

0 comments on commit cf6da8d

Please sign in to comment.