Class GameClientTokenTargetMethod
A class representing a method used to resolve a token.
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure.Token
Assembly: Aruba.Infrastructure.dll
Syntax
public class GameClientTokenTargetMethod
Properties
View SourceAllPossibleTargetMethods
Gets all the possible target methods.
Declaration
public static List<GameClientTokenTargetMethod> AllPossibleTargetMethods { get; }
Property Value
Type | Description |
---|---|
List<GameClientTokenTargetMethod> |
Method
Gets or sets the Method Info.
Declaration
public MethodInfo Method { get; set; }
Property Value
Type | Description |
---|---|
MethodInfo |
Methods
View SourceAddGameClientInstanceMethodsFromType(Type, Func<IGameClient, object>)
Adds the methods from the provided type.
Declaration
public static void AddGameClientInstanceMethodsFromType(Type targetType, Func<IGameClient, object> targetInstanceGetter)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | The type to grab methods from. |
Func<IGameClient, object> | targetInstanceGetter | Function to access the instance of the given type. |
AddGameClientStaticMethodsFromType(Type)
Adds the static methods from the provided type.
Declaration
public static void AddGameClientStaticMethodsFromType(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | The type to grab static methods from. |
Equals(object)
Custom equals for comparing two GameClientTokenTargetMethods
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare to. |
Returns
Type | Description |
---|---|
bool | Whether the objects are equal. |
Overrides
View SourceFromMethod(MethodInfo)
Build a Game Client Token Target Method from the Method Info.
Declaration
public static GameClientTokenTargetMethod FromMethod(MethodInfo method)
Parameters
Type | Name | Description |
---|---|---|
MethodInfo | method | The method info. |
Returns
Type | Description |
---|---|
GameClientTokenTargetMethod | The created GameClientTokenTargetMethod |
GetHashCode()
Gets the Hash Code for the method.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code. |
Overrides
View SourceInvokeOnTargetAsync(IGameClient, Guid, Guid)
Call the method.
Declaration
public Task<object> InvokeOnTargetAsync(IGameClient gameClient, Guid bugResolveId, Guid resolvePassId)
Parameters
Type | Name | Description |
---|---|---|
IGameClient | gameClient | The game client to invoke the method on. |
Guid | bugResolveId | The id associated with this bug. |
Guid | resolvePassId | The id associated with this resolve pass. |
Returns
Type | Description |
---|---|
Task<object> | An object that is the result of invoking the method. |
RemoveGameClientMethodsByDeclaringType(Type)
Removes methods based on their declaring type.
Declaration
public static void RemoveGameClientMethodsByDeclaringType(Type declaringType)
Parameters
Type | Name | Description |
---|---|---|
Type | declaringType | The declaring type of the methods to remove. |
ToString()
Converts method to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The method string. |