public async ValueTask Write(PrimitiveWriter primitiveWriter, CancellationToken cancellationToken) { queue.Remove(out Data data); await data.Write(primitiveWriter, cancellationToken); cache.Add(data); }
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); }
public void Execute() { queue.Remove(out Data data); Publish(data); cache.Add(data); }