22 lines
831 B
C#
22 lines
831 B
C#
// 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;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Microsoft.AspNet.Mvc.Xml
|
|
{
|
|
/// <summary>
|
|
/// Create a <see cref="IWrapperProvider"/> given a <see cref="WrapperProviderContext"/>.
|
|
/// </summary>
|
|
public interface IWrapperProviderFactory
|
|
{
|
|
/// <summary>
|
|
/// Gets the <see cref="IWrapperProvider"/> for the provided context.
|
|
/// </summary>
|
|
/// <param name="context">The <see cref="WrapperProviderContext"/>.</param>
|
|
/// <returns>A wrapping provider if the factory decides to wrap the type, else <c>null</c>.</returns>
|
|
IWrapperProvider GetProvider(WrapperProviderContext context);
|
|
}
|
|
}
|