public void Initialize(IWarehouse warehouse, IStorageScope scope) { Warehouse = warehouse; Scope = scope; // there's no other work for a memshelf }
public void Initialize(IWarehouse warehouse, IStorageScope scope) { Warehouse = warehouse; Scope = scope; // TODO: if there are 3 file system providers, who do you know which one to use. FileSystemProvider = Warehouse.LighthouseContainer.GetFileSystemProviders().FirstOrDefault(); if (FileSystemProvider == null) { throw new ApplicationException("No filesystem could be located."); } }
public int GetHashCode(IStorageScope obj) { return(obj.Identifier.GetHashCode()); }
public bool Equals(IStorageScope x, IStorageScope y) { throw new NotImplementedException(); }
public bool Equals(IStorageScope x, IStorageScope y) { return(x.Identifier == y.Identifier); }
public MemoryShelfKey(IStorageScope scope, string key) { ScopeIdentifier = scope.Identifier; Key = key; }
public WarehouseKey(string uuid, IStorageScope scope, Dictionary <string, object> otherIdentifiers = null) { Id = uuid; Scope = scope; OtherIdentifiers = otherIdentifiers; }
private WarehouseKey() { Id = ""; Scope = null; OtherIdentifiers = null; }