Ejemplo n.º 1
0
        public IFileChunkHandler GetChunkHandler(FourCharacterCode chunkId)
        {
            Contract.Requires(chunkId != null);
            Contract.Ensures(Contract.Result <IFileChunkHandler>() != null);
            Check.IfArgumentNull(chunkId, "chunkId");

            return(GetChunkHandler(chunkId.ToString()));
        }
 /// <summary>
 /// Retrieves a handler for the specified <paramref name="chunkId"/>.
 /// </summary>
 /// <param name="chunkId">Must not be null.</param>
 /// <returns>Never returns null.</returns>
 /// <remarks>If no specific chunk handler could be found, the default handler is returned.</remarks>
 public IFileChunkHandler GetChunkHandler(FourCharacterCode chunkId)
 {
     Check.IfArgumentNull(chunkId, nameof(chunkId));
     return(GetChunkHandler(chunkId.ToString()));
 }