diff --git a/src/Moryx.AbstractionLayer/Drivers/Axis/IAxesController.cs b/src/Moryx.AbstractionLayer/Drivers/Axis/IAxesController.cs index 1454f7f9d..847ee0882 100644 --- a/src/Moryx.AbstractionLayer/Drivers/Axis/IAxesController.cs +++ b/src/Moryx.AbstractionLayer/Drivers/Axis/IAxesController.cs @@ -15,15 +15,13 @@ public interface IAxesController : IDriver /// /// The axis which should be moved /// The target position of the axis - /// The callback which will be executed after the axis movement - void MoveAxis(Axes axis, double targetPosition, DriverResponse callback); + Task MoveAxis(Axes axis, double targetPosition); /// /// Will move the axis of the laser to the given position /// /// The axis which should be moved /// The target position of the axis - /// The callback which will be executed after the axis movement - void MoveAxis(Axes axis, AxisPosition targetPosition, DriverResponse callback); + Task MoveAxis(Axes axis, AxisPosition targetPosition); } } diff --git a/src/Moryx.AbstractionLayer/Drivers/Camera/ICameraDriver.cs b/src/Moryx.AbstractionLayer/Drivers/Camera/ICameraDriver.cs index 3d275bdd7..12efd1da8 100644 --- a/src/Moryx.AbstractionLayer/Drivers/Camera/ICameraDriver.cs +++ b/src/Moryx.AbstractionLayer/Drivers/Camera/ICameraDriver.cs @@ -19,10 +19,10 @@ public interface ICameraDriver : IDriver where TImage : class /// Capture a single image from the camera /// /// - /// The image that was captured or null in case no image + /// The image that was captured or null in case no image /// could be retrieved /// - Task CaptureImage(); + Task CaptureImage(); } } diff --git a/src/Moryx.AbstractionLayer/Drivers/Marking/IMarkingLaserDriver.cs b/src/Moryx.AbstractionLayer/Drivers/Marking/IMarkingLaserDriver.cs index cdd742add..eda78684f 100644 --- a/src/Moryx.AbstractionLayer/Drivers/Marking/IMarkingLaserDriver.cs +++ b/src/Moryx.AbstractionLayer/Drivers/Marking/IMarkingLaserDriver.cs @@ -9,26 +9,15 @@ namespace Moryx.AbstractionLayer.Drivers.Marking public interface IMarkingLaserDriver : IDriver { /// - /// Set up marking file as a preperation for the marking process + /// Set up marking file as a preparation for the marking process /// - void SetMarkingFile(MarkingFile file, DriverResponse callback); + Task SetMarkingFileAsync(MarkingFile file); /// /// Will start the marking process and executes the given callback after finish /// /// The configuration for the marking process. - /// The callback which will be executed after the marking process - void Mark(MarkingConfiguration config, DriverResponse callback); - - /// - /// Triggers a message to get the last error - /// - void RequestLastError(); - - /// - /// Triggers a message to get the last warning - /// - void RequestLastWarning(); + Task MarkAsync(MarkingConfiguration config); /// /// Will be fired if an error occured diff --git a/src/Moryx.AbstractionLayer/Drivers/PickByLight/IPickByLightDriver.cs b/src/Moryx.AbstractionLayer/Drivers/PickByLight/IPickByLightDriver.cs index e6739fb9e..0eda99a28 100644 --- a/src/Moryx.AbstractionLayer/Drivers/PickByLight/IPickByLightDriver.cs +++ b/src/Moryx.AbstractionLayer/Drivers/PickByLight/IPickByLightDriver.cs @@ -11,12 +11,12 @@ public interface IPickByLightDriver : IDriver /// /// Activate instruction for this address /// - void ActivateInstruction(string address, LightInstructions instruction); + Task ActivateInstruction(string address, LightInstructions instruction); /// /// Deactivate an instruction /// - void DeactivateInstruction(string address); + Task DeactivateInstruction(string address); /// /// Instruction was confirmed diff --git a/src/Moryx.AbstractionLayer/Drivers/Scales/IWeightScaleDriver.cs b/src/Moryx.AbstractionLayer/Drivers/Scales/IWeightScaleDriver.cs index a6edbc2db..fc4895b82 100644 --- a/src/Moryx.AbstractionLayer/Drivers/Scales/IWeightScaleDriver.cs +++ b/src/Moryx.AbstractionLayer/Drivers/Scales/IWeightScaleDriver.cs @@ -11,7 +11,7 @@ public interface IWeightScaleDriver : IDriver /// /// Requests the weight from the scale. /// - void GetCurrentWeight(DriverResponse callback); + Task GetCurrentWeight(); /// /// Occurs when the weight scale weight was read. diff --git a/src/Moryx.AbstractionLayer/Drivers/TransmissionResult.cs b/src/Moryx.AbstractionLayer/Drivers/TransmissionResult.cs index d9b5500a3..64bddf263 100644 --- a/src/Moryx.AbstractionLayer/Drivers/TransmissionResult.cs +++ b/src/Moryx.AbstractionLayer/Drivers/TransmissionResult.cs @@ -4,12 +4,7 @@ namespace Moryx.AbstractionLayer.Drivers { /// - /// Generic base delegate for driver APIs with callback - /// - public delegate void DriverResponse(IDriver sender, TResult result) where TResult : TransmissionResult; - - /// - /// Base result object for transissions + /// Base result object for transmissions /// public abstract class TransmissionResult {