示例#1
0
        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);
 }
示例#6
0
 public MemoryShelfKey(IStorageScope scope, string key)
 {
     ScopeIdentifier = scope.Identifier;
     Key             = key;
 }
示例#7
0
 public WarehouseKey(string uuid, IStorageScope scope, Dictionary <string, object> otherIdentifiers = null)
 {
     Id               = uuid;
     Scope            = scope;
     OtherIdentifiers = otherIdentifiers;
 }
示例#8
0
 private WarehouseKey()
 {
     Id               = "";
     Scope            = null;
     OtherIdentifiers = null;
 }