blob: 3e26add97d840ab1ac38cc4f870059090134c5a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNetCore.Mvc.Localization
{
/// <summary>
/// A factory that creates <see cref="IHtmlLocalizer"/> instances.
/// </summary>
public interface IHtmlLocalizerFactory
{
/// <summary>
/// Creates an <see cref="IHtmlLocalizer"/> using the <see cref="System.Reflection.Assembly"/> and
/// <see cref="Type.FullName"/> of the specified <see cref="Type"/>.
/// </summary>
/// <param name="resourceSource">The <see cref="Type"/>.</param>
/// <returns>The <see cref="IHtmlLocalizer"/>.</returns>
IHtmlLocalizer Create(Type resourceSource);
/// <summary>
/// Creates an <see cref="IHtmlLocalizer"/>.
/// </summary>
/// <param name="baseName">The base name of the resource to load strings from.</param>
/// <param name="location">The location to load resources from.</param>
/// <returns>The <see cref="IHtmlLocalizer"/>.</returns>
IHtmlLocalizer Create(string baseName, string location);
}
}
|