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; }
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; }
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 создан"); }