Example #1
0
        public IMinilockClusterStatusTracker CreateStatusTracker(ClusterInformation clusterInformation)
        {
            if (clusterInformation == null)
            {
                throw new ArgumentNullException(nameof(clusterInformation));
            }

            var clusterCoordinator = new MinilockClusterStatusTracker(_provider, clusterInformation.Clone());

            return(clusterCoordinator);
        }
Example #2
0
        public ClusterInformation Clone()
        {
            var copy = new ClusterInformation(ClusterName, HostName);

            return(copy);
        }
 public MinilockClusterStatusTracker(IMinilockProvider provider, ClusterInformation clusterInformation)
 {
     _provider          = provider;
     _lockReference     = new LockReference(false);
     ClusterInformation = clusterInformation;
 }