public static IDisposable Subscribe(this ISecsDevice device, SecsMessage filter, bool recoverable, Action <SecsMessage> callback) { var subscription = new SecsEventSubscription(device.ToolId, filter, recoverable, callback); device.Subscribe(subscription); return(subscription); }
public static IDisposable Subscribe(this ISecsDevice device, SecsMessage filter, Action <SecsMessage> callback) => device.Subscribe(filter, false, callback);