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(NotificationHandler<ResourceLoadingDetail, IMaaResource>)

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

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

Parameters

notify NotificationHandler<ResourceLoadingDetail, IMaaResource>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<ControllerActionDetail, IMaaController>)

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

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

Parameters

notify NotificationHandler<ControllerActionDetail, IMaaController>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<TaskerTaskDetail, IMaaTasker>)

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

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

Parameters

notify NotificationHandler<TaskerTaskDetail, IMaaTasker>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<NodeNextListDetail, IMaaContext>)

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

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

Parameters

notify NotificationHandler<NodeNextListDetail, IMaaContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<NodeRecognitionDetail, IMaaContext>)

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

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

Parameters

notify NotificationHandler<NodeRecognitionDetail, IMaaContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<NodeActionDetail, IMaaContext>)

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

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

Parameters

notify NotificationHandler<NodeActionDetail, IMaaContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<PipelineNodeDetail, IMaaContext>)

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

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

Parameters

notify NotificationHandler<PipelineNodeDetail, IMaaContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<RecognitionNodeDetail, IMaaContext>)

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

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

Parameters

notify NotificationHandler<RecognitionNodeDetail, IMaaContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.

ToCallback(NotificationHandler<ActionNodeDetail, IMaaContext>)

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

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

Parameters

notify NotificationHandler<ActionNodeDetail, IMaaContext>

The notificationHandler.

Returns

EventHandler<MaaCallbackEventArgs>

A callback delegate.