Esempio n. 1
0
            public RemoteReliableMulticast(IEnumerable <string> participants_uris, string selfId)
            {
                HashSet <MulticastParticipant> participant_set = new HashSet <MulticastParticipant>();

                foreach (var p in participants_uris)
                {
                    IRemoteMulticastOps multicast = Activator.GetObject(typeof(IRemoteMulticastOps), p) as IRemoteMulticastOps;
                    participant_set.Add(new MulticastParticipant(multicast, p));
                }
                postInit(participant_set, selfId);
            }
Esempio n. 2
0
 public MulticastParticipant(IRemoteMulticastOps remoteObject, string id)
 {
     this.remoteObject = remoteObject ?? throw new ArgumentNullException(nameof(remoteObject));
     this.id           = id;
 }