forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIDisplayMode.cs
More file actions
19 lines (18 loc) · 1.09 KB
/
Copy pathIDisplayMode.cs
File metadata and controls
19 lines (18 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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 System.Web.WebPages
{
/// <summary>
/// An interface that provides DisplayInfo for a virtual path and request. An IDisplayMode may modify the virtual path before checking
/// if it exists. CanHandleContext is called to determine if the Display Mode is available to return display info for the request.
/// GetDisplayInfo should return null if the virtual path does not exist. For an example implementation, see DefaultDisplayMode.
/// DisplayModeId is used to cache the non-null result of a call to GetDisplayInfo and should be unique for each Display Mode. See
/// DisplayModes for the built-in Display Modes and their ids.
/// </summary>
public interface IDisplayMode
{
string DisplayModeId { get; }
bool CanHandleContext(HttpContextBase httpContext);
DisplayInfo GetDisplayInfo(HttpContextBase httpContext, string virtualPath, Func<string, bool> virtualPathExists);
}
}