Beispiel #1
0
        public GeneralCore(
            [Dependency]
            ITaskProviderClientFactory taskProviderClientFactory,
            [Dependency]
            IRepositoryClientFactory repositoryClientFactory,
            [Dependency]
            ISystemResources systemResources,
            [Dependency]
            IUnityContainer container,
            [Dependency]
            IExecutionStatus status,
            [Dependency]
            IWrapperFactory wrapperFactory)
        {
            Contract.Requires(taskProviderClientFactory != null);
            Contract.Requires(repositoryClientFactory != null);
            Contract.Requires(systemResources != null);
            Contract.Requires(container != null);
            Contract.Requires(wrapperFactory != null);

            this.taskProviderClientFactory = taskProviderClientFactory;
            this.repositoryClientFactory = repositoryClientFactory;
            this.systemResources = systemResources;
            this.container = container;
            this.status = status;
            this.wrapperFactory = wrapperFactory;
        }
Beispiel #2
0
 /// <summary>
 /// Checks system resources to comply task's requirements. 
 /// </summary>
 /// <param name="resources">
 /// An instance of <see cref="ISystemResources"/> that provides information about availible system resources.
 /// </param>
 /// <returns>
 /// true if current task can be executed efficienly enough on specified resources, false otherwise.
 /// </returns>
 public bool Validate(ISystemResources resources)
 {
     Console.WriteLine("Task is being validated.");
     return true;
 }
Beispiel #3
0
 /// <summary>
 /// Checks system resources to comply task's requirements. 
 /// </summary>
 /// <param name="resources">
 /// An instance of <see cref="AISTek.DataFlow.Shared.Classes.ISystemResources"/> that provides information about available system resources.
 /// </param>
 /// <returns>
 /// true if current task can be executed efficiently enough on specified resources, false otherwise.
 /// </returns>
 public bool Validate(ISystemResources resources)
 {
     return true;
 }