Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Submit Inheritance: Microsoft.Restier.Core.InvocationContext

Syntax

Microsoft.Restier.Core.Submit.SubmitContext

Summary

Represents context under which a submit flow operates.

Constructors

.ctor

Initializes a new instance of the SubmitContext class.

Syntax

public SubmitContext(Microsoft.Restier.Core.ApiBase api, Microsoft.Restier.Core.Submit.ChangeSet changeSet)

Parameters

NameTypeDescription
apiMicrosoft.Restier.Core.ApiBaseAn Api.
changeSetMicrosoft.Restier.Core.Submit.ChangeSetA change set.

.ctor Inherited

Inherited from Microsoft.Restier.Core.InvocationContext
Initializes a new instance of the InvocationContext class.

Syntax

public InvocationContext(Microsoft.Restier.Core.ApiBase api)

Parameters

NameTypeDescription
apiMicrosoft.Restier.Core.ApiBaseAn Api.

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Api Inherited

Inherited from Microsoft.Restier.Core.InvocationContext
Gets the ApiBase descendant for this invocation.

Syntax

public Microsoft.Restier.Core.ApiBase Api { get; }

Property Value

Type: Microsoft.Restier.Core.ApiBase

ChangeSet

Gets or sets the change set.

Syntax

public Microsoft.Restier.Core.Submit.ChangeSet ChangeSet { get; set; }

Property Value

Type: Microsoft.Restier.Core.Submit.ChangeSet

Remarks

The change set cannot be set if there is already a result.

Result

Gets or sets the submit result.

Syntax

public Microsoft.Restier.Core.Submit.SubmitResult Result { get; set; }

Property Value

Type: Microsoft.Restier.Core.Submit.SubmitResult

Methods

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

GetApiService Inherited

Inherited from Microsoft.Restier.Core.InvocationContext
Gets an API service.

Syntax

public T GetApiService<T>() where T : class

Returns

Type: T The API service instance.

Type Parameters

  • T - The API service type.

GetApiService Inherited

Inherited from Microsoft.Restier.Core.InvocationContext
Gets an API service.

Syntax

public object GetApiService(System.Type type)

Parameters

NameTypeDescription
typeSystem.TypeThe API service type.

Returns

Type: object The API service instance.

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?