コード例 #1
0
        public string OpenSession()
        {
            LoginItrisRequestEntity loginItrisRequestEntity = new LoginItrisRequestEntity()
            {
                username = _authenticateEntity._username,
                password = _authenticateEntity._password,
                database = _authenticateEntity._database
            };

            itrisSessionRepository = new ItrisSessionRepository(loginItrisRequestEntity);

            return(itrisSessionRepository.GetItrisSession(_authenticateEntity.LoginUrl()));
        }
コード例 #2
0
        public string CloseSession(string itrisSession)
        {
            LoginItrisRequestEntity loginItrisRequestEntity = new LoginItrisRequestEntity()
            {
                username = _authenticateEntity._username,
                password = _authenticateEntity._password,
                database = _authenticateEntity._database
            };

            itrisSessionRepository = new ItrisSessionRepository(loginItrisRequestEntity);

            string message = itrisSessionRepository.CloseItrisSession(_authenticateEntity.LogOutUrl(), itrisSession);

            return(message);
        }