internal static Task <ILogicalLog> TestCreateMemoryLogicalLog(long startingPosition, int maxSize)
        {
            var created = new MemoryLogicalLog(startingPosition, maxSize);

            created.Open();

            return(Task.FromResult(created as ILogicalLog));
        }
 public MemoryLogReaderStream(MemoryLogicalLog parent)
 {
     this.parent       = parent;
     this.readPosition = 0;
 }
 protected override async Task <ILogicalLog> CreateLogFileAsync(
     bool createNew,
     CancellationToken cancellationToken)
 {
     return(await MemoryLogicalLog.CreateMemoryLogicalLog(this.maxStreamSize).ConfigureAwait(false));
 }