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<TaskNextListDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<TaskNextListDetail> notify)
Parameters
notify
NotificationHandler<TaskNextListDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
ToCallback(NotificationHandler<TaskRecognitionDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<TaskRecognitionDetail> notify)
Parameters
notify
NotificationHandler<TaskRecognitionDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.
ToCallback(NotificationHandler<TaskActionDetail>)
Converts a notificationHandler to a delegate used for MaaFramework.Binding.Abstractions.IMaaCommon.Callback.
public static EventHandler<MaaCallbackEventArgs> ToCallback(this NotificationHandler<TaskActionDetail> notify)
Parameters
notify
NotificationHandler<TaskActionDetail>-
The notificationHandler.
Returns
- EventHandler<MaaCallbackEventArgs>
-
A callback delegate.