Esempio n. 1
0
            public IPayloadComponentId RegisterPayloadComponent(IPayloadDefinition definition)
            {
                IPayloadComponentId id = new PayloadId(payloads.Count);
                var internalDefinition = new InternalPayloadDefinition(definition, id);

                if (payloadHashAlgorithm != null)
                {
                    internalDefinition.IncrementalHash(payloadHashAlgorithm);
                }
                payloads.Add(internalDefinition);

                return(id);
            }
Esempio n. 2
0
 public DistributionList(InternalPayloadDefinition payload)
 {
     this.Payload = payload;
     listeners    = new HashSet <IListener>(ReferenceEqualityComparer <IListener> .Instance);
 }