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
notifyNotificationHandler<TDetail, TContext>-
The notificationHandler.
prefixOfMaaMsgstring-
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
notifyNotificationHandler<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
notifyNotificationHandler<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
notifyNotificationHandler<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
notifyNotificationHandler<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
notifyNotificationHandler<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
notifyNotificationHandler<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
notifyNotificationHandler<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
notifyNotificationHandler<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
notifyNotificationHandler<ActionNodeDetail, IMaaContext>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.