Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core Inheritance: System.Object

Syntax

Microsoft.Restier.Core.ConventionBasedChangeSetItemAuthorizer

Summary

A convention-based change set item authorizer.

Constructors

.ctor

Initializes a new instance of the ConventionBasedChangeSetItemAuthorizer class.

Syntax

public ConventionBasedChangeSetItemAuthorizer(System.Type targetApiType)

Parameters

NameTypeDescription
targetApiTypeSystem.TypeThe target type to check for authorizer functions.

.ctor Inherited

Inherited from object

Syntax

public Object()

Methods

AuthorizeAsync

Syntax

public System.Threading.Tasks.Task<bool> AuthorizeAsync(Microsoft.Restier.Core.Submit.SubmitContext context, Microsoft.Restier.Core.Submit.ChangeSetItem item, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Submit.SubmitContext-
itemMicrosoft.Restier.Core.Submit.ChangeSetItem-
cancellationTokenSystem.Threading.CancellationToken-

Returns

Type: System.Threading.Tasks.Task<bool>

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?
  • Microsoft.Restier.Core.Submit.IChangeSetItemAuthorizer