/// <summary>
        /// Create a new ExcelMediaTypeFormatter.
        /// </summary>
        public XlsxOutputFormatter(XlsxOutputFormatterOptions options,
                                   Func <IEnumerable <IXlsxSerialiser> > serialisersFactory)
        {
            SupportedMediaTypes.Clear();
            SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"));
            SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("application/vnd.ms-excel"));

            Options = options;

            SerialisersFactory = serialisersFactory;
        }
 public XlsxOutputFormatterSetup(Func <IEnumerable <IXlsxSerialiser> > serializers, IOptions <XlsxOutputFormatterOptions> options)
 {
     _options     = options.Value;
     _serializers = serializers;
 }