Beispiel #1
0
        public static DataBaseInfo[] GetDataBases(string address)
        {
            var serviceClient = DescriptorServiceFactory.CreateServiceClient(address);

            serviceClient.Open();
            try
            {
                return(serviceClient.GetDataBaseInfos());
            }
            finally
            {
                serviceClient.Close();
            }
        }
Beispiel #2
0
        public static bool IsOnline(string address, string userID, SecureString password)
        {
            var serviceClient = DescriptorServiceFactory.CreateServiceClient(address);

            serviceClient.Open();
            try
            {
                return(serviceClient.IsOnline(userID, UserContext.Encrypt(userID, password)));
            }
            finally
            {
                serviceClient.Close();
            }
        }
Beispiel #3
0
        private static ServiceInfo[] GetServiceInfo(string address)
        {
            var serviceClient = DescriptorServiceFactory.CreateServiceClient(address);

            serviceClient.Open();
            try
            {
                var version = serviceClient.GetVersion();
                return(serviceClient.GetServiceInfos());
            }
            finally
            {
                serviceClient.Close();
            }
        }