/// <summary> /// Creates memory-based tape storage factory, using the provided concurrent dictionary. /// </summary> /// <param name="dictionary">The dictionary.</param> /// <returns></returns> public static MemoryTapeStorageFactory CreateTape(ConcurrentDictionary <string, List <byte[]> > dictionary) { var factory = new MemoryTapeStorageFactory(dictionary); factory.InitializeForWriting(); return(factory); }
public void TapeIsInMemory() { var storage = new ConcurrentDictionary <string, List <byte[]> >(); var factory = new MemoryTapeStorageFactory(storage); TapeIs(factory); }
/// <summary> /// Creates memory-based tape storage factory, using the provided concurrent dictionary. /// </summary> /// <param name="dictionary">The dictionary.</param> /// <returns></returns> public static MemoryTapeStorageFactory CreateTape(this MemoryAccount account, string container = "tapes") { var factory = new MemoryTapeStorageFactory(account.Tapes, container); factory.InitializeForWriting(); return(factory); }
/// <summary> /// Creates memory-based tape storage factory, using the provided concurrent dictionary. /// </summary> /// <param name="dictionary">The dictionary.</param> /// <returns></returns> public static MemoryTapeStorageFactory CreateTape(ConcurrentDictionary<string, List<byte[]>> dictionary) { var factory = new MemoryTapeStorageFactory(dictionary); factory.InitializeForWriting(); return factory; }
public void TapeIsInMemory() { var storage = new ConcurrentDictionary<string, List<byte[]>>(); var factory = new MemoryTapeStorageFactory(storage); TapeIs(factory); }