Getting Started
Architecture
NServiceBus
Transports
Persistence
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Modernization
Samples

ServicePlatform Connector Upgrade Version 3 to 4

Component: ServicePlatform Connector
This page targets a pre-release version. Pre-releases are subject to change and samples are not guaranteed to be fully functional.

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);