using System;
using System.Threading.Tasks;

namespace Zombus.Infrastructure.BrokeredMessageServices.LargeMessages
{
    internal class UnsupportedLargeMessageBodyStore : ILargeMessageBodyStore
    {
        public const string FailureMessage =
            "Your message was too large. Large message support must be configured via Zombus.LargeMessages.[Azure|FileSystem|<yourCustomStorageProvider>] before use.";

        public Task<string> Store(string id, byte[] bytes, DateTimeOffset expiresAfter)
        {
            throw new NotSupportedException(FailureMessage);
        }

        public Task<byte[]> Retrieve(string id)
        {
            throw new NotSupportedException(FailureMessage);
        }

        public Task Delete(string id)
        {
            throw new NotSupportedException(FailureMessage);
        }
    }
}