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

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

Public Methods

Method 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.

Protected Methods

Method 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 method

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
return System

DataEquals() public method

public DataEquals ( IRingMasterBackendRequest obj ) : bool
obj IRingMasterBackendRequest
return bool

Equals() public method

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.
return bool

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

InvokeCallback() protected final method

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

MakeUid() protected static method

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

NotifyComplete() protected abstract method

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
return void