Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 protected abstract ProcessDescriptor DoGetDescriptor(PID pid);
Exemplo n.º 4
0
        public static ResultSignal Dispatch(PID pid)
        {
            var finalize = MakeNew <FinalizeSignal>(pid);

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