Beispiel #1
0
 /// <summary>
 /// Factory method that creates new Process based on provided PID
 /// </summary>
 public static TProcess MakeNew <TProcess>(PID pid) where TProcess : Process, new()
 {
     return(makeDefault(new TProcess(), pid));
 }
Beispiel #2
0
 /// <summary>
 /// Factory method that creates new Process based on provided Type, PID and Configuration
 /// </summary>
 public static Process MakeNew(Type type, PID pid, IConfigSectionNode args)
 {
     return(makeDefault(FactoryUtils.MakeAndConfigure <Process>(args, type), pid));
 }
Beispiel #3
0
 protected abstract ProcessDescriptor DoGetDescriptor(PID pid);
Beispiel #4
0
        public static ResultSignal Dispatch(PID pid)
        {
            var finalize = MakeNew <FinalizeSignal>(pid);

            return(AgniSystem.ProcessManager.Dispatch(finalize));
        }
Beispiel #5
0
 public ProcessDescriptor GetDescriptor(PID pid)
 {
     return(DoGetDescriptor(pid));
 }
Beispiel #6
0
 protected abstract TProcess DoGet <TProcess>(PID pid) where TProcess : Process;
Beispiel #7
0
 public TProcess Get <TProcess>(PID pid) where TProcess : Process
 {
     return(DoGet <TProcess>(pid));
 }
Beispiel #8
0
 public Task <ResultSignal> Async_Dispatch(PID pid, IConfigSectionNode args, Guid type)
 {
     return(Async_Dispatch(pid, args, SignalTypeResolver.Resolve(type)));
 }
Beispiel #9
0
 public ResultSignal Dispatch(PID pid, IConfigSectionNode args, Guid type)
 {
     return(Dispatch(pid, args, SignalTypeResolver.Resolve(type)));
 }
Beispiel #10
0
 public Task Async_Spawn(PID pid, IConfigSectionNode args, Guid type)
 {
     return(Async_Spawn(pid, args, ProcessTypeResolver.Resolve(type)));
 }
Beispiel #11
0
 public void Spawn(PID pid, IConfigSectionNode args, Guid type)
 {
     Spawn(pid, args, ProcessTypeResolver.Resolve(type));
 }