Class ProjectResolver
Resolves which projects that are active accoring to request.
Inheritance
System.Object
ProjectResolver
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration]
[ServiceConfiguration(typeof(IProjectResolver))]
public class ProjectResolver : IProjectResolver
Constructors
ProjectResolver(QueryParameterResolver, ServiceAccessor<RequestContext>)
Creates a new instance of ProjectResolver.
Declaration
public ProjectResolver(QueryParameterResolver queryParameterResolver, ServiceAccessor<RequestContext> requestContext)
Parameters
Type | Name | Description |
---|---|---|
QueryParameterResolver | queryParameterResolver | The query parameter resolver used. |
ServiceAccessor<System.Web.Routing.RequestContext> | requestContext | Accessor to the current request context. |
ProjectResolver(QueryParameterResolver, ContextModeResolver)
Creates a new instance of ProjectResolver.
Declaration
public ProjectResolver(QueryParameterResolver queryParameterResolver, ContextModeResolver contextModeResolver)
Parameters
Type | Name | Description |
---|---|---|
QueryParameterResolver | queryParameterResolver | The query parameter resolver used. |
ContextModeResolver | contextModeResolver | The context mode resolver. |
Methods
GetCurrentProjects()
Resolves which projects that are active according to request.
Declaration
public virtual IEnumerable<int> GetCurrentProjects()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> |