# NServiceBus Version 6 ServiceControl Plugins Upgrade Version 1 to 2 ## Connecting to ServiceControl Version 2 of the ServiceControl plugins changes the way that the plugins connect to ServiceControl. The plugins no longer derive a ServiceControl queue name from the Error/Audit queues. Additional configuration is required to specify the location of the ServiceControl queue. ### Configuration File The location of the ServiceControl queue can be specified once for all plugins in via an `appSetting` in the endpoint configuration file. ```xml ``` ### Code The location of the ServiceControl queue can be specified via plugin-specific extensions to the endpoint configuration. #### Heartbeats ```csharp var endpointConfiguration = new EndpointConfiguration("myendpoint"); endpointConfiguration.HeartbeatPlugin( serviceControlQueue: "ServiceControl_Queue"); ``` #### CustomChecks ```csharp var endpointConfiguration = new EndpointConfiguration("myendpoint"); endpointConfiguration.CustomCheckPlugin( serviceControlQueue: "ServiceControl_Queue"); ``` #### SagaAudit ```csharp var endpointConfiguration = new EndpointConfiguration("myendpoint"); endpointConfiguration.SagaPlugin( serviceControlQueue: "particular.servicecontrol@machine"); ```