Show / Hide Table of Contents

Class AuthorizationServices

Provides methods for configuring AMI authorization in DI environment.

Inheritance
object
AuthorizationServices
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Maintenance.CommandLine.Authorization
Assembly: DotNext.MaintenanceServices.dll
Syntax
public static class AuthorizationServices

Methods

| Edit this page View Source

UseApplicationMaintenanceInterfaceGlobalAuthorization(IServiceCollection, AuthorizationCallback)

Enables global authorization rule to be applied to all maintenance commands.

Declaration
public static IServiceCollection UseApplicationMaintenanceInterfaceGlobalAuthorization(this IServiceCollection services, AuthorizationCallback callback)
Parameters
Type Name Description
IServiceCollection services

A registry of services.

AuthorizationCallback callback

Authorization callback.

Returns
Type Description
IServiceCollection

A modified registry of services.

| Edit this page View Source

UseApplicationMaintenanceInterfaceGlobalAuthorization<TDependency>(IServiceCollection, Func<TDependency, AuthorizationCallback>)

Enables global authorization rule to be applied to all maintenance commands.

Declaration
public static IServiceCollection UseApplicationMaintenanceInterfaceGlobalAuthorization<TDependency>(this IServiceCollection services, Func<TDependency, AuthorizationCallback> callbackFactory) where TDependency : notnull
Parameters
Type Name Description
IServiceCollection services

A registry of services.

Func<TDependency, AuthorizationCallback> callbackFactory

Authorization callback factory.

Returns
Type Description
IServiceCollection

A modified registry of services.

Type Parameters
Name Description
TDependency

The type of the dependency.

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾