コード例 #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();
        }