Table of Contents

Method ToCallback<TDetail, TContext>

Namespace
MaaFramework.Binding.Notification
Assembly
MaaFramework.Binding.Extensions.dll

ToCallback<TDetail, TContext>(NotificationHandler<TDetail, TContext>, string)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TDetail, TContext>(this NotificationHandler<TDetail, TContext> notify, string prefixOfMaaMsg)

Parameters

notify NotificationHandler<TDetail, TContext>

The notificationHandler.

prefixOfMaaMsg string

The prefix of MaaFramework.Binding.Notification.MaaMsg.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TDetail

The type of the notification detail generated by the notification.

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<ResourceLoadingDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<ResourceLoadingDetail, TContext> notify) where TContext : IMaaResource

Parameters

notify NotificationHandler<ResourceLoadingDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<ControllerActionDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<ControllerActionDetail, TContext> notify) where TContext : IMaaController

Parameters

notify NotificationHandler<ControllerActionDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<TaskerTaskDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<TaskerTaskDetail, TContext> notify) where TContext : IMaaTasker

Parameters

notify NotificationHandler<TaskerTaskDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<NodeNextListDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<NodeNextListDetail, TContext> notify) where TContext : IMaaContext

Parameters

notify NotificationHandler<NodeNextListDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<NodeRecognitionDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<NodeRecognitionDetail, TContext> notify) where TContext : IMaaContext

Parameters

notify NotificationHandler<NodeRecognitionDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<NodeActionDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<NodeActionDetail, TContext> notify) where TContext : IMaaContext

Parameters

notify NotificationHandler<NodeActionDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<PipelineNodeDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<PipelineNodeDetail, TContext> notify) where TContext : IMaaContext

Parameters

notify NotificationHandler<PipelineNodeDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<RecognitionNodeDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<RecognitionNodeDetail, TContext> notify) where TContext : IMaaContext

Parameters

notify NotificationHandler<RecognitionNodeDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.

ToCallback<TContext>(NotificationHandler<ActionNodeDetail, TContext>)

Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.

public static EventHandler<MaaCallbackEventArgs> ToCallback<TContext>(this NotificationHandler<ActionNodeDetail, TContext> notify) where TContext : IMaaContext

Parameters

notify NotificationHandler<ActionNodeDetail, TContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

Type Parameters

TContext

The type of the context.