C# Class Microsoft.Azure.Networking.Infrastructure.RingMaster.Backend.BackendRequestWithContext

Implements the ability to associate a context with a request.
Inheritance: BackendRequest
Afficher le fichier Open project: Azure/RingMaster Class Usage Examples

Méthodes publiques

Méthode Description
DataEquals ( IRingMasterBackendRequest obj ) : bool
Equals ( object obj ) : bool

Determines whether the specified object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

Méthodes protégées

Méthode Description
BackendRequestWithContext ( request, object context ) : System

Initializes a new instance of the BackendRequestWithContext{TRequest, TReturn} class.

InvokeCallback ( int resultCode, object result, IStat stat, string responsePath ) : void
MakeUid ( ulong uid ) : ulong

Assigns a unique uid if the given uid is zero.

NotifyComplete ( int resultCode, result, IStat stat, string responsePath ) : void

Notifies that the request has been completed.

Method Details

BackendRequestWithContext() protected méthode

Initializes a new instance of the BackendRequestWithContext{TRequest, TReturn} class.
protected BackendRequestWithContext ( request, object context ) : System
request The request
context object The context associated with the request
Résultat System

DataEquals() public méthode

public DataEquals ( IRingMasterBackendRequest obj ) : bool
obj IRingMasterBackendRequest
Résultat bool

Equals() public méthode

Determines whether the specified object is equal to this instance.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
Résultat bool

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

InvokeCallback() protected final méthode

protected final InvokeCallback ( int resultCode, object result, IStat stat, string responsePath ) : void
resultCode int
result object
stat IStat
responsePath string
Résultat void

MakeUid() protected static méthode

Assigns a unique uid if the given uid is zero.
protected static MakeUid ( ulong uid ) : ulong
uid ulong The uid to assign (or zero)
Résultat ulong

NotifyComplete() protected abstract méthode

Notifies that the request has been completed.
protected abstract NotifyComplete ( int resultCode, result, IStat stat, string responsePath ) : void
resultCode int result code
result The result
stat IStat The stat
responsePath string The response path
Résultat void