コード例 #1
0
        internal ReplicatedValueStore(IServiceAddress address,
		                              IServiceConnector connector,
		                              IDatabase localDb, Object dbWriteLock,
		                              ServiceStatusTracker tracker)
        {
            this.address = address;
            this.connector = connector;
            blockDatabase = localDb;
            blockDbWriteLock = dbWriteLock;
            this.tracker = tracker;
            comm = new MessageCommunicator(connector, tracker);

            cluster = new List<IServiceAddress>(9);
            ClearAllMachines();

            // Add listener for service status updates,
            tracker.StatusChange += TrackerOnStatusChange;
        }
コード例 #2
0
 public MCServiceMessageQueue(MessageCommunicator communicator)
 {
     this.communicator = communicator;
 }
コード例 #3
0
 public MCServiceMessageQueue(MessageCommunicator communicator)
 {
     this.communicator = communicator;
 }