Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (28 sloc) 1.17 KB
// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.Extensions.DependencyInjection;
namespace ExtCore.Mvc.Infrastructure.Actions
{
/// <summary>
/// Describes an action that must be executed inside the AddMvc method and might be used by the extensions
/// to configure the MVC.
/// </summary>
public interface IAddMvcAction
{
/// <summary>
/// Priority of the action. The actions will be executed in the order specified by the priority (from smallest to largest).
/// </summary>
int Priority { get; }
/// <summary>
/// Contains any code that must be executed inside the AddMvc method.
/// </summary>
/// <param name="mvcBuilder">
/// Will be provided by the ExtCore.Mvc and might be used to configure the MVC.
/// </param>
/// <param name="serviceProvider">
/// Will be provided by the ExtCore.Mvc and might be used to get any service that is registered inside the DI at this moment.
/// </param>
void Execute(IMvcBuilder mvcBuilder, IServiceProvider serviceProvider);
}
}