Class AbpActionContextExtensions
Inheritance
object
AbpActionContextExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.Mvc
Assembly: Volo.Abp.AspNetCore.Mvc.dll
Syntax
public static class AbpActionContextExtensions
Methods
GetRequiredService<T>(FilterContext)
Declaration
public static T GetRequiredService<T>(this FilterContext context) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Filters.FilterContext | context |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
GetService<T>(FilterContext, T)
Declaration
public static T GetService<T>(this FilterContext context, T defaultValue = null) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Filters.FilterContext | context | |
| T | defaultValue |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |