public static AuditProcessedMessagesTo ( this config, string auditQueue, System.TimeSpan timeToBeReceived = null ) : void | ||
config | this | The |
auditQueue | string | The name of the audit queue to use. |
timeToBeReceived | System.TimeSpan | The custom TTR to use for messages sent to the audit queue. |
return | void |
public static void AuditProcessedMessagesTo(this EndpointConfiguration config, string auditQueue, TimeSpan? timeToBeReceived = null)
{
Guard.AgainstNull(nameof(config), config);
Guard.AgainstNullAndEmpty(nameof(auditQueue), auditQueue);
if (timeToBeReceived != null)
{
Guard.AgainstNegative(nameof(timeToBeReceived), timeToBeReceived.Value);
}
config.Settings.Set<AuditConfigReader.Result>(new AuditConfigReader.Result
{
Address = auditQueue,
TimeToBeReceived = timeToBeReceived
});
}
}