Method ToCallback<TDetail>
- Namespace
- MaaFramework.Binding.Notification
- Assembly
- MaaFramework.Binding.Extensions.dll
ToCallback<TDetail>(NotificationHandler<TDetail>, string)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback<TDetail>(this NotificationHandler<TDetail> notify, string prefixOfMaaMsg)
Parameters
notify
NotificationHandler<TDetail>-
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.
ToCallback(NotificationHandler<ResourceLoadingDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<ResourceLoadingDetail> notify)
Parameters
notify
NotificationHandler<ResourceLoadingDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
ToCallback(NotificationHandler<ControllerActionDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<ControllerActionDetail> notify)
Parameters
notify
NotificationHandler<ControllerActionDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
ToCallback(NotificationHandler<TaskerTaskDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<TaskerTaskDetail> notify)
Parameters
notify
NotificationHandler<TaskerTaskDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
ToCallback(NotificationHandler<NodeNextListDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<NodeNextListDetail> notify)
Parameters
notify
NotificationHandler<NodeNextListDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
ToCallback(NotificationHandler<NodeRecognitionDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<NodeRecognitionDetail> notify)
Parameters
notify
NotificationHandler<NodeRecognitionDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
ToCallback(NotificationHandler<NodeActionDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<NodeActionDetail> notify)
Parameters
notify
NotificationHandler<NodeActionDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.