internal static StorageMetadata Create(string host, bool isCurrent) { if (string.IsNullOrEmpty(host)) { throw new ArgumentNullException("host"); } StorageMetadata metadata = StorageMetadata.Create(host, isCurrent, Guid.Empty); return(metadata); }
public IStorageMetadata CreateCurrentStorageNode(string host) { if (string.IsNullOrEmpty(host)) { throw new ArgumentNullException("host"); } StorageMetadata storage = StorageMetadata.Create(host, true); return(storage); }
public IStorageMetadata CreateStorageNode(string host, Guid uniqueID) { if (string.IsNullOrEmpty(host)) { throw new ArgumentNullException("host"); } if (uniqueID == Guid.Empty) { throw new ArgumentNullException("uniqueID"); } StorageMetadata storage = StorageMetadata.Create(host, false, uniqueID); return(storage); }