Exemplo n.º 1
0
        public static void Validate(IMonitoringInstance instance)
        {
            var validator = new ConnectionStringValidator(instance.ConnectionString, instance.ServiceAccount);

            if (instance.TransportPackage.ZipName.Equals("SQLServer", StringComparison.OrdinalIgnoreCase))
            {
                validator.CheckMsSqlConnectionString();
            }
        }
        public static void Validate(IMonitoringInstance instance)
        {
            var validator = new ConnectionStringValidator(instance.ConnectionString, instance.ServiceAccount);

            if (instance.TransportPackage == "SQLServer")
            {
                validator.CheckMsSqlConnectionString();
            }
        }
Exemplo n.º 3
0
        public static void Validate(IServiceControlAuditInstance instance)
        {
            var validator = new ConnectionStringValidator(instance.ConnectionString, instance.ServiceAccount);

            if (instance.TransportPackage.Name.Equals(TransportNames.SQLServer, StringComparison.OrdinalIgnoreCase))
            {
                validator.CheckMsSqlConnectionString();
            }
        }
        public static void Validate(IServiceControlInstance instance)
        {
            var validator = new ConnectionStringValidator(instance);

            if (instance.TransportPackage == "SQLServer")
            {
                validator.CheckMsSqlConnectionString();
            }
        }