Beispiel #1
0
        public static (IClusterSnapshotControl, ILogger) Instance(World world, string name)
        {
            var initializer = new ClusterSnapshotInitializer(name, Properties.Instance, world.DefaultLogger);

            var application = ClusterApplicationFactory.Instance(world, initializer.LocalNode);

            var control =
                world.ActorFor <IClusterSnapshotControl>(() => new ClusterSnapshotActor(initializer, application), $"cluster-snapshot-{name}");

            return(control, world.DefaultLogger);
        }
        public static (IClusterSnapshotControl, ILogger) Instance(World world, string name)
        {
            var initializer = new ClusterSnapshotInitializer(name, Properties.Instance, world.DefaultLogger);

            var application = ClusterApplicationFactory.Instance(world, initializer.LocalNode);

            var definition =
                Definition.Has <ClusterSnapshotActor>(
                    Definition.Parameters(initializer, application),
                    "cluster-snapshot-" + name);

            var control = world.ActorFor <IClusterSnapshotControl>(definition);

            return(control, world.DefaultLogger);
        }