コード例 #1
0
        public bool Authenticate(string username, string password)
        {
            var middlewareService = new AuthenticationServiceClient();

            middlewareService.ClientCredentials.Windows.ClientCredential.UserName = "******";
            middlewareService.ClientCredentials.Windows.ClientCredential.Password = "******";
            if (middlewareService.CheckExistence(username))
            {
                return(middlewareService.Authenticate(username, password));
            }

            return(false);
        }