Skip to content

Commit

Permalink
Merge pull request #514 from PHOENIXCONTACT/api-fix/remove-camera-dri…
Browse files Browse the repository at this point in the history
…ver-listener

Port: Replace `ICameraDriverListener` with `EventHandler`
  • Loading branch information
seveneleven authored Dec 20, 2024
2 parents d1fa2db + 5e15007 commit d83d44f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
11 changes: 3 additions & 8 deletions src/Moryx.AbstractionLayer/Drivers/Camera/ICameraDriver.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Moryx.AbstractionLayer.Drivers;
using System;
using System.Threading.Tasks;

namespace Moryx.Drivers.Camera.Interfaces
Expand All @@ -9,15 +10,9 @@ namespace Moryx.Drivers.Camera.Interfaces
public interface ICameraDriver<TImage> : IDriver where TImage : class
{
/// <summary>
/// Registers an ICameraDriverListener that should be provided
/// with images.
/// Eventhandler to continously provide images from a camera
/// </summary>
void Register(ICameraDriverListener<TImage> listener);

/// <summary>
/// Unregisters an ICameraDriverListener
/// </summary>
void Unregister(ICameraDriverListener<TImage> listener);
event EventHandler<TImage> CapturedImage;

/// <summary>
/// Capture a single image from the camera
Expand Down
18 changes: 0 additions & 18 deletions src/Moryx.AbstractionLayer/Drivers/Camera/ICameraDriverListener.cs

This file was deleted.

0 comments on commit d83d44f

Please sign in to comment.