Skip to content

Commit

Permalink
Replace ICameraDriverListener with EventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
seveneleven committed Dec 20, 2024
1 parent 7877c44 commit 5e15007
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 5e15007

Please sign in to comment.