Inheritance: SettingsBase
コード例 #1
0
 public JiraAgileService(AssistantSettings configuration, ApplicationCache applicationCache, IJiraServerApi metadataRetriever, IssuesFinder issuesFinder)
    : base(configuration)
 {
    _applicationCache = applicationCache;
    _metadataRetriever = metadataRetriever;
    _issuesFinder = issuesFinder;
 }
コード例 #2
0
ファイル: JiraApi.cs プロジェクト: sceeter89/jira-client
      public JiraApi(AssistantSettings configuration, ApplicationCache applicationCache)
      {
         _resourceDownloader = new ResourceDownloader(configuration);

         Session = new JiraSessionService(configuration);
         Server = new MetadataRetriever(configuration);
         _issuesFinder = new IssuesFinder(configuration, Server);
         Agile = new JiraAgileService(configuration, applicationCache, Server, _issuesFinder);
         Worklog = new WorklogManager(configuration);
      }
コード例 #3
0
        public AgileBoardSelectViewModel(IMessenger messenger, AssistantSettings settings, IJiraApi jiraApi)
        {
            _messenger = messenger;
            _jiraApi = jiraApi;
            _settings = settings;

            Boards = new ObservableCollection<RawAgileBoard>();
            RecentBoards = new ObservableCollection<RawAgileBoard>();
            OpenBoardCommand = new RelayCommand<RawAgileBoard>(OpenBoard);
            OpenSettingsCommand = new RelayCommand(() => _messenger.Send(new OpenSettingsMessage()));
        }
コード例 #4
0
        public JiraSessionViewModel(AssistantSettings configuration,
           IMessenger messenger,
           IJiraApi jiraApi)
        {
            _jiraApi = jiraApi;
            _configuration = configuration;
            _messenger = messenger;

            _jiraApi.Session.OnLogout += (sender, args) => LoggedOut();
            _jiraApi.Session.OnSuccessfulLogin += (sender, args) => LoggedIn();
        }
コード例 #5
0
        public LoginPageViewModel(IMessenger messenger,
           JiraSessionViewModel jiraSession,
           IJiraApi jiraApi,
           AssistantSettings configuration)
        {
            _messenger = messenger;
            _jiraSession = jiraSession;
            _jiraApi = jiraApi;

            JiraAddress = configuration.JiraUrl;
            Username = configuration.Username;
        }
コード例 #6
0
      public BoardGraveyardViewModel(IList<JiraIssue> issues,
         IMessenger messenger,
         AssistantSettings appSettings,
         GraveyardSettings graveyardSettings)
      {
         Issues = issues;
         _messenger = messenger;
         _graveyardSettings = graveyardSettings;
         _graveyardSettings.PropertyChanged += (sender, args) => _reloadNeeded = true;
         _appSettings = appSettings;

         OpenDetailsCommand = new RelayCommand<JiraIssue>(issue => _messenger.Send(new OpenIssueDetailsMessage(issue)));
         OpenInBrowserCommand = new RelayCommand<JiraIssue>(issue => Process.Start(string.Format("{0}/browse/{1}", _appSettings.JiraUrl, issue.Key)));

         OldCreated = new ObservableCollection<JiraIssue>();
         ArchaicCreated = new ObservableCollection<JiraIssue>();
         OldUpdated = new ObservableCollection<JiraIssue>();
         InactiveAssignee = new ObservableCollection<JiraIssue>();
         MissingDescription = new ObservableCollection<JiraIssue>();
      }
コード例 #7
0
 public ResourceDownloader(AssistantSettings configuration)
    : base(configuration)
 {
 }
コード例 #8
0
 public BaseRestService(AssistantSettings configuration)
 {
    Configuration = configuration;
 }
コード例 #9
0
 public JiraSessionService(AssistantSettings configuration)
    : base(configuration)
 {
 }
コード例 #10
0
      public ApplicationCache(AssistantSettings configuration)
      {
         _configuration = configuration;

         _baseCacheDirectory = Path.Combine("Cache", configuration.JiraUrl.GetHashCode().ToString());
      }