Exemple #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="primaryPresenter"></param>
        public CloudJobPresenter(MainPresenter primaryPresenter)
        {
            cloudInterface = new AzureInterface();
            cancelToken    = new CancellationTokenSource();

            presenter = primaryPresenter;
            jobList   = new List <JobDetails>();
        }
Exemple #2
0
        /// <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;
        }
Exemple #3
0
 /// <summary>Default constructor.</summary>
 public RunOnCloudPresenter()
 {
     cloudInterface = new AzureInterface();
     cancellation   = new CancellationTokenSource();
 }