public void Initialize() { var connectionConfiguration = ConnectionConfiguration.Create(connectionString, "ServiceControl.Monitoring"); var dbConnectionStringBuilder = new DbConnectionStringBuilder { ConnectionString = connectionString }; connectionFactory = new ConnectionFactory(connectionConfiguration, null, //providing certificates is not supported yet dbConnectionStringBuilder.GetBooleanValue("DisableRemoteCertificateValidation"), dbConnectionStringBuilder.GetBooleanValue("UseExternalAuthMechanism")); }
public void Initialize() { var connectionConfiguration = ConnectionConfiguration.Create(connectionString, "ServiceControl.Monitoring"); connectionFactory = new ConnectionFactory(connectionConfiguration, null, false, false); }