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<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 : IMaaResourceParameters
notifyNotificationHandler<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 : IMaaControllerParameters
notifyNotificationHandler<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 : IMaaTaskerParameters
notifyNotificationHandler<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 : IMaaContextParameters
notifyNotificationHandler<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 : IMaaContextParameters
notifyNotificationHandler<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 : IMaaContextParameters
notifyNotificationHandler<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 : IMaaContextParameters
notifyNotificationHandler<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 : IMaaContextParameters
notifyNotificationHandler<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 : IMaaContextParameters
notifyNotificationHandler<ActionNodeDetail, TContext>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
Type Parameters
TContext-
The type of the context.