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); }
public MulticastParticipant(IRemoteMulticastOps remoteObject, string id) { this.remoteObject = remoteObject ?? throw new ArgumentNullException(nameof(remoteObject)); this.id = id; }