This repository was archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify FindView and FindPartialView to accept ActionContext
Fixes #787
- Loading branch information
Showing
16 changed files
with
150 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.AspNet.Mvc.Rendering | ||
{ | ||
/// <summary> | ||
/// Defines the contract for a view engine. | ||
/// </summary> | ||
public interface IViewEngine | ||
{ | ||
ViewEngineResult FindView([NotNull] IDictionary<string, object> context, [NotNull] string viewName); | ||
/// <summary> | ||
/// Finds the specified view by using the specified action context. | ||
/// </summary> | ||
/// <param name="context">The action context.</param> | ||
/// <param name="viewName">The name or full path to the view.</param> | ||
/// <returns>A result representing the result of locating the view.</returns> | ||
ViewEngineResult FindView(ActionContext context, string viewName); | ||
|
||
ViewEngineResult FindPartialView( | ||
[NotNull] IDictionary<string, object> context, | ||
[NotNull] string partialViewName); | ||
/// <summary> | ||
/// Finds the specified partial view by using the specified action context. | ||
/// </summary> | ||
/// <param name="context">The action context.</param> | ||
/// <param name="viewName">The name or full path to the view.</param> | ||
/// <returns>A result representing the result of locating the view.</returns> | ||
ViewEngineResult FindPartialView(ActionContext context, string partialViewName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.