예제 #1
0
        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);
        }
예제 #2
0
 public static IDisposable Subscribe(this ISecsDevice device, SecsMessage filter, Action <SecsMessage> callback)
 => device.Subscribe(filter, false, callback);