This is part of the NServiceBus Upgrade Guide from Version 9 to 10, which also includes the following individual upgrade guides for specific components:
Transports
Persistence
Other
Metrics TimeToBeReceived renamed to TimeToLive
In version 4, the setting to configure the maximum time to live for Metrics messages has been renamed from TimeToBeReceived to TimeToLive. This aligns it with the naming convention of similar settings for other sections of the configuration.
4-pre NServiceBus.ServicePlatform.Connector
var platformConnection = new ServicePlatformConnectionConfiguration
{
Metrics = new ServicePlatformMetricsConfiguration
{
TimeToLive = TimeSpan.FromSeconds(60)
}
};
endpointConfiguration.ConnectToServicePlatform(platformConnection);
3.x NServiceBus.ServicePlatform.Connector
var platformConnection = new ServicePlatformConnectionConfiguration
{
Metrics = new ServicePlatformMetricsConfiguration
{
TimeToBeReceived = TimeSpan.FromSeconds(60)
}
};
endpointConfiguration.ConnectToServicePlatform(platformConnection);