From 67eb16dc679569b16200f0278e0f007547b16381 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 8 Sep 2015 15:52:53 -0700 Subject: [PATCH] Fixing RazorViewEngine formatting --- .../RazorViewEngine.cs | 42 +++++++++++-------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc.Razor/RazorViewEngine.cs b/src/Microsoft.AspNet.Mvc.Razor/RazorViewEngine.cs index 333b93dae7..0e9666e868 100644 --- a/src/Microsoft.AspNet.Mvc.Razor/RazorViewEngine.cs +++ b/src/Microsoft.AspNet.Mvc.Razor/RazorViewEngine.cs @@ -48,10 +48,11 @@ namespace Microsoft.AspNet.Mvc.Razor /// Initializes a new instance of the class. /// /// The page factory used for creating instances. - public RazorViewEngine(IRazorPageFactory pageFactory, - IRazorViewFactory viewFactory, - IOptions optionsAccessor, - IViewLocationCache viewLocationCache) + public RazorViewEngine( + IRazorPageFactory pageFactory, + IRazorViewFactory viewFactory, + IOptions optionsAccessor, + IViewLocationCache viewLocationCache) { _pageFactory = pageFactory; _viewFactory = viewFactory; @@ -98,8 +99,9 @@ namespace Microsoft.AspNet.Mvc.Razor } /// - public ViewEngineResult FindView([NotNull] ActionContext context, - string viewName) + public ViewEngineResult FindView( + [NotNull] ActionContext context, + string viewName) { if (string.IsNullOrEmpty(viewName)) { @@ -111,8 +113,9 @@ namespace Microsoft.AspNet.Mvc.Razor } /// - public ViewEngineResult FindPartialView([NotNull] ActionContext context, - string partialViewName) + public ViewEngineResult FindPartialView( + [NotNull] ActionContext context, + string partialViewName) { if (string.IsNullOrEmpty(partialViewName)) { @@ -124,8 +127,9 @@ namespace Microsoft.AspNet.Mvc.Razor } /// - public RazorPageResult FindPage([NotNull] ActionContext context, - string pageName) + public RazorPageResult FindPage( + [NotNull] ActionContext context, + string pageName) { if (string.IsNullOrEmpty(pageName)) { @@ -148,7 +152,9 @@ namespace Microsoft.AspNet.Mvc.Razor /// for traditional routes to get route values produces /// consistently cased results. /// - public static string GetNormalizedRouteValue([NotNull] ActionContext context, [NotNull] string key) + public static string GetNormalizedRouteValue( + [NotNull] ActionContext context, + [NotNull] string key) { object routeValue; if (!context.RouteData.Values.TryGetValue(key, out routeValue)) @@ -191,9 +197,10 @@ namespace Microsoft.AspNet.Mvc.Razor return stringRouteValue; } - private RazorPageResult GetRazorPageResult(ActionContext context, - string pageName, - bool isPartial) + private RazorPageResult GetRazorPageResult( + ActionContext context, + string pageName, + bool isPartial) { if (IsApplicationRelativePath(pageName)) { @@ -303,9 +310,10 @@ namespace Microsoft.AspNet.Mvc.Razor return new RazorPageResult(pageName, searchedLocations); } - private ViewEngineResult CreateViewEngineResult(RazorPageResult result, - IRazorViewFactory razorViewFactory, - bool isPartial) + private ViewEngineResult CreateViewEngineResult( + RazorPageResult result, + IRazorViewFactory razorViewFactory, + bool isPartial) { if (result.SearchedLocations != null) {