﻿using System;

namespace CorAlert.MessageBrokerClient.Contracts
{
    public class StreamConfiguration
    {
        public string Name { get; }

        public int? RetainedMessageCount { get; set; }
        public bool RetainExisting { get; set; }

        public StreamConfiguration(string name)
        {
            if(name is null)
                throw new ArgumentNullException(nameof(name));

            Name = name;
        }
    }
}