예제 #1
0
        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);
        }
예제 #2
0
        public IStorageMetadata CreateCurrentStorageNode(string host)
        {
            if (string.IsNullOrEmpty(host))
            {
                throw new ArgumentNullException("host");
            }

            StorageMetadata storage = StorageMetadata.Create(host, true);

            return(storage);
        }
예제 #3
0
        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);
        }