예제 #1
0
        public JiraTfs(IStore store, Jira jira, Tfs tfs)
        {
            _store = store;
            _jira  = jira;
            _tfs   = tfs;

            _timeDifferenceBtwJira = jira.GetServerTime() - DateTime.Now;
            _timeDifferenceBtfTfs  = tfs.GetServerTime() - DateTime.Now;

            global = ConfigurationManager.GetSection("globalConfig") as GlobalConfigurationSection;
        }
예제 #2
0
        public Tfs(IStore store)
        {
            _store = store;


            var collectionUri = new Uri(_store.Config.TFSAddress);

            NetCred = new NetworkCredential(_store.Config.TFSLogin, _store.Config.TFSPassword, "Axapta");
            Tpc     = new TfsTeamProjectCollection(collectionUri, NetCred);
            Tpc.EnsureAuthenticated();
            WorkItemStore = Tpc.GetService <WorkItemStore>();
            //WorkItemStore = new WorkItemStore(Tpc, WorkItemStoreFlags.BypassRules);

            TeamProject = WorkItemStore.Projects[_store.Config.TFSProjectName];

            globalConfig = ConfigurationManager.GetSection("globalConfig") as GlobalConfigurationSection;
        }
예제 #3
0
파일: Jira.cs 프로젝트: Chaliapine/JiraTFS
        public Jira(IStore store)
        {
            _store = store;

            global = ConfigurationManager.GetSection("globalConfig") as GlobalConfigurationSection;
            if (global == null)
            {
                throw new NullReferenceException("Global config section not found");
            }

            baseApiUrl  = _store.Config.JiraAddress;
            username    = _store.Config.JiraLogin;
            password    = _store.Config.JiraPassword;
            projectName = _store.Config.JiraProjectName;



            logger.Info("Менеджер jira создан");
        }