Platform.StreamStorage.Azure.AzureEventStore.Exists C# (CSharp) Method

Exists() static private method

static private Exists ( CloudBlob blob ) : bool
blob Microsoft.WindowsAzure.StorageClient.CloudBlob
return bool
        static bool Exists(CloudBlob blob)
        {
            try
            {
                blob.FetchAttributes();
                return true;
            }
            catch (StorageClientException e)
            {
                switch (e.ErrorCode)
                {
                    case StorageErrorCode.ContainerNotFound:
                    case StorageErrorCode.ResourceNotFound:
                        return false;
                }
                throw;
            }
        }