public ActorSystemBootstrap(IActorSystem system, Option <ICluster> cluster, ProcessId rootId, IActor rootProcess, IActorInbox rootInbox, ProcessName rootProcessName, ActorSystemConfig config, ProcessSystemConfig settings, SessionSync sync) { System = system; Sync = sync; var parent = new ActorItem(new NullProcess(system.Name), new NullInbox(), ProcessFlags.Default); rootProcess = new Actor <ActorSystemBootstrap, Unit>( cluster, parent, rootProcessName, SystemInbox, _ => this, null, Process.DefaultStrategy, ProcessFlags.Default, settings, system ); root = new ActorItem(rootProcess, rootInbox, rootProcess.Flags); Config = config; Settings = settings; Cluster = cluster; RootProcess = rootProcess; RootInbox = rootInbox; RootProcessName = rootProcessName; }
public ActorSystemState(Option <ICluster> cluster, ProcessId rootId, IActor rootProcess, IActorInbox rootInbox, ProcessName rootProcessName, ActorSystemConfig config) { var parent = new ActorItem(new NullProcess(), new NullInbox(), ProcessFlags.Default); rootProcess = new Actor <ActorSystemState, Unit>( cluster, parent, rootProcessName, ActorSystem.Inbox, _ => this, null, Process.DefaultStrategy, ProcessFlags.Default ); root = new ActorItem(rootProcess, RootInbox, rootProcess.Flags); Config = config; Cluster = cluster; RootProcess = rootProcess; RootInbox = rootInbox; RootProcessName = rootProcessName; }