Skip to content

sharedlibrarycoreinterfaces IInteractionRegistration

RaidMax edited this page May 21, 2023 · 1 revision

IInteractionRegistration Public interface

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SharedLibraryCore.Interfaces
  SharedLibraryCore.Interfaces.IInteractionRegistration[[IInteractionRegistration]]
  class SharedLibraryCore.Interfaces.IInteractionRegistration interfaceStyle;
  end
Loading

Members

Methods

Public methods

Returns Name
Task<IEnumerable<IInteractionData>> GetInteractions(string interactionPrefix, Nullable<int> clientId, Nullable<Game> game, CancellationToken token)
Task<string> ProcessInteraction(string interactionId, int originId, Nullable<int> targetId, Nullable<Game> game, IDictionary<string, string> meta, CancellationToken token)
void RegisterInteraction(string interactionName, Func<Nullable<int>, Nullable<Game>, CancellationToken, Task<IInteractionData>> interactionRegistration)
void RegisterScriptInteraction(string interactionName, string source, Delegate interactionRegistration)
void UnregisterInteraction(string interactionName)

Details

Methods

RegisterScriptInteraction

Source code

public void RegisterScriptInteraction(string interactionName, string source, Delegate interactionRegistration)
Arguments
Type Name Description
string interactionName
string source
Delegate interactionRegistration

RegisterInteraction

Source code

public void RegisterInteraction(string interactionName, Func<Nullable<int>, Nullable<Game>, CancellationToken, Task<IInteractionData>> interactionRegistration)
Arguments
Type Name Description
string interactionName
Func<Nullable<int>, Nullable<Game>, CancellationToken, Task<IInteractionData>> interactionRegistration

UnregisterInteraction

Source code

public void UnregisterInteraction(string interactionName)
Arguments
Type Name Description
string interactionName

GetInteractions

Source code

public Task<IEnumerable<IInteractionData>> GetInteractions(string interactionPrefix, Nullable<int> clientId, Nullable<Game> game, CancellationToken token)
Arguments
Type Name Description
string interactionPrefix
Nullable<int> clientId
Nullable<Game> game
CancellationToken token

ProcessInteraction

Source code

public Task<string> ProcessInteraction(string interactionId, int originId, Nullable<int> targetId, Nullable<Game> game, IDictionary<string, string> meta, CancellationToken token)
Arguments
Type Name Description
string interactionId
int originId
Nullable<int> targetId
Nullable<Game> game
IDictionary<string, string> meta
CancellationToken token

Generated with ModularDoc

Clone this wiki locally