<commit_before>﻿//-----------------------------------------------------------------------
// <copyright file="RegisteredSwaggerDocument.cs" company="NSwag">
//     Copyright (c) <NAME>. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author><NAME>, <EMAIL></author>
//-----------------------------------------------------------------------

using NSwag.SwaggerGeneration;

namespace NSwag.AspNetCore
{
    internal class SwaggerDocumentRegistration
    {
        public SwaggerDocumentRegistration(string documentName, ISwaggerGenerator generator)
        {
            DocumentName = documentName;
            Generator = generator;
        }

        public string DocumentName { get; }

        public ISwaggerGenerator Generator { get; }
    }
}<commit_msg>Make SwaggerDocumentRegistration public, closes #1798<commit_after>﻿//-----------------------------------------------------------------------
// <copyright file="RegisteredSwaggerDocument.cs" company="NSwag">
//     Copyright (c) <NAME>. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author><NAME>, <EMAIL></author>
//-----------------------------------------------------------------------

using NSwag.SwaggerGeneration;

namespace NSwag.AspNetCore
{
    /// <summary>A Swagger/OpenAPI document generator registration.</summary>
    public class SwaggerDocumentRegistration
    {
        /// <summary>Initializes a new instance of the <see cref="SwaggerDocumentRegistration"/> class.</summary>
        /// <param name="documentName">The document name.</param>
        /// <param name="generator">The document generator.</param>
        public SwaggerDocumentRegistration(string documentName, ISwaggerGenerator generator)
        {
            DocumentName = documentName;
            Generator = generator;
        }

        /// <summary>Gets the document name.</summary>
        public string DocumentName { get; }

        /// <summary>Gets the document generator.</summary>
        public ISwaggerGenerator Generator { get; }
    }
}
{'fraction_non_alphanumeric': 0.2426367461430575, 'fraction_numerical': 0.0018700327255726976, 'mean_word_length': 1.8879892037786774, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6196966', 'n_tokens_mistral': 509, 'n_tokens_neox': 502, 'n_words': 110}