예제 #1
0
파일: AdinTce.cs 프로젝트: imp908/fileshare
        public AdinTceRepo()
        {
            this._CommandBuilder = new AdinTceCommandBuilder(new TokenMiniFactory(), new FormatFactory());
            this._webManager     = new AdinTceWebManager();
            this._responseReader = new AdinTceResponseReader();
            this._jsonManager    = new AdinTceJsonManager();

            _webManager.SetCredentials(new System.Net.NetworkCredential(
                                           ConfigurationManager.AppSettings["AdinTceLogin"], ConfigurationManager.AppSettings["AdinTcePassword"]));

            GUIDtoken    = new AdinTceGUIDToken();
            tokenBuilder = new AdinTceExplicitTokenBuilder();
        }
예제 #2
0
파일: AdinTce.cs 프로젝트: imp908/fileshare
        public AdinTceRepo(
            IQueryManagers.ICommandBuilder CommandBuilder_,
            IWebManagers.IWebManager webManager_,
            IWebManagers.IResponseReader responseReader_,
            IJsonManagers.IJsonManger jsonManager_)
        {
            this._CommandBuilder = CommandBuilder_;
            this._webManager     = webManager_;
            this._responseReader = responseReader_;
            this._jsonManager    = jsonManager_;

            GUIDtoken    = new AdinTceGUIDToken();
            tokenBuilder = new AdinTceExplicitTokenBuilder();
        }