/// <summary> /// Constructor. /// </summary> /// <param name="primaryPresenter"></param> public CloudJobPresenter(MainPresenter primaryPresenter) { cloudInterface = new AzureInterface(); cancelToken = new CancellationTokenSource(); presenter = primaryPresenter; jobList = new List <JobDetails>(); }
/// <summary> /// Constructor. /// </summary> /// <param name="primaryPresenter"></param> public CloudJobPresenter(MainPresenter primaryPresenter) { cloudInterface = new AzureInterface(); cancelToken = new CancellationTokenSource(); presenter = primaryPresenter; jobList = new List <JobDetails>(); fetchJobs = new BackgroundWorker() { WorkerSupportsCancellation = true }; fetchJobs.DoWork += ListJobs; }
/// <summary>Default constructor.</summary> public RunOnCloudPresenter() { cloudInterface = new AzureInterface(); cancellation = new CancellationTokenSource(); }