Esempio n. 1
0
        protected Publisher <Publishable> CreatePublisher <Publishable>(IndirectAggregate <Publishable> indirectAggregate)
            where Publishable : Deserializable <byte>
        {
            DeserializablePublisher <Publishable> deserializablePublisher = new DeserializablePublisher <Publishable>(indirectAggregate, deserializables);

            indirectAggregate.Remove(out Publishable publishable);
            index.Add(publishable.Identity, deserializablePublisher);
            indirectAggregate.Add(publishable);
            return(deserializablePublisher);
        }
Esempio n. 2
0
 public SerializableSubscriber(IndirectAggregate <Data> cache, IndirectIncreasingAggregate <Serializable> parent)
 {
     this.cache  = cache;
     this.parent = parent;
 }
 internal DeserializablePublisher(IndirectAggregate <Data> cache, IndirectIncreasingAggregate <Executable> parent)
 {
     this.cache  = cache;
     this.parent = parent;
 }
Esempio n. 4
0
 protected Subscriber <Action <Subscribable> > CreateSubscriber <Subscribable>(IndirectAggregate <Subscribable> indirectAggregate)
     where Subscribable : Serializable <byte> => new SerializableSubscriber <Subscribable>(indirectAggregate, serializables);