Akka.Cluster.ClusterReadView.ClusterReadView C# (CSharp) Method

ClusterReadView() public method

public ClusterReadView ( Cluster cluster ) : System
cluster Cluster
return System
        public ClusterReadView(Cluster cluster)
        {
            _cluster = cluster;
            _state = new ClusterEvent.CurrentClusterState();
            _reachability = Reachability.Empty;
            _latestStats = new ClusterEvent.CurrentInternalStats(new GossipStats(), new VectorClockStats());
            _clusterMetrics = ImmutableHashSet.Create<NodeMetrics>();
            _selfAddress = cluster.SelfAddress;

            _eventBusListener =
                cluster.System.SystemActorOf(
                    Props.Create(() => new EventBusListener(cluster, this))
                        .WithDispatcher(cluster.Settings.UseDispatcher)
                        .WithDeploy(Deploy.Local), "clusterEventBusListener");
        }