Exemple #1
0
 /// <summary>
 /// Initializes new instance of <see cref="IndexBlock"/> class by given next block address
 /// </summary>
 /// <param name="nextBlock">Tha address of the next related block in index file</param>
 public IndexBlock(BlockInfo nextBlock)
 {
     payload        = new List <StreamMetadata>();
     this.nextBlock = nextBlock;
 }
Exemple #2
0
 /// <summary>
 /// Initializes new instance of <see cref="IndexBlock"/> class by given collection of stream metadata and next block address
 /// </summary>
 /// <param name="payload">The <see cref="StreamMetadata"/> collection</param>
 /// <param name="nextBlock">Tha address of the next related block in index file</param>
 public IndexBlock(IEnumerable <StreamMetadata> payload, BlockInfo nextBlock)
 {
     this.payload   = payload.OrderBy(x => x.Key).ToList();
     this.nextBlock = nextBlock;
 }
Exemple #3
0
 /// <summary>
 /// Initializes new empty instance of <see cref="IndexBlock"/> class.
 /// </summary>
 public IndexBlock()
 {
     payload   = new List <StreamMetadata>();
     nextBlock = BlockInfo.Empty;
 }