// 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.
namespace Microsoft.AspNet.Mvc.Actions
{
///
/// Provides methods for creation and disposal of controllers.
///
public interface IControllerFactory
{
///
/// Creates a new controller for the specified .
///
/// for the action to execute.
/// The controller.
object CreateController(ActionContext actionContext);
///
/// Releases a controller instance.
///
/// The controller.
void ReleaseController(object controller);
}
}