-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (FileDownloader.Dispose()): implement the disposable pattern on …
…the file-downloader too
- Loading branch information
1 parent
ddc6f90
commit af522fe
Showing
14 changed files
with
160 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
Laerdal.McuMgr/Shared/FileDownloader/Contracts/IFileDownloader.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
// ReSharper disable UnusedMember.Global | ||
// ReSharper disable EventNeverSubscribedTo.Global | ||
|
||
using System; | ||
|
||
namespace Laerdal.McuMgr.FileDownloader.Contracts | ||
{ | ||
/// <summary>Downloads a file on a specific Nordic-chip-based BLE device</summary> | ||
/// <remarks>For the file-downloading process to even commence you need to be authenticated with the AED device that's being targeted.</remarks> | ||
public interface IFileDownloader : IFileDownloaderCommandable, IFileDownloaderQueryable, IFileDownloaderEventSubscribable | ||
public interface IFileDownloader : | ||
IFileDownloaderCommandable, | ||
IFileDownloaderQueryable, | ||
IFileDownloaderEventSubscribable, | ||
IDisposable | ||
{ | ||
} | ||
} |
10 changes: 8 additions & 2 deletions
10
Laerdal.McuMgr/Shared/FileDownloader/Contracts/Native/INativeFileDownloaderProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
namespace Laerdal.McuMgr.FileDownloader.Contracts.Native | ||
using System; | ||
|
||
namespace Laerdal.McuMgr.FileDownloader.Contracts.Native | ||
{ | ||
internal interface INativeFileDownloaderProxy : INativeFileDownloaderQueryableProxy, INativeFileDownloaderCommandableProxy, INativeFileDownloaderCallbacksProxy | ||
internal interface INativeFileDownloaderProxy : | ||
INativeFileDownloaderQueryableProxy, | ||
INativeFileDownloaderCommandableProxy, | ||
INativeFileDownloaderCallbacksProxy, | ||
IDisposable | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
Laerdal.McuMgr/Shared/FirmwareInstaller/Contracts/IFirmwareInstaller.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
// ReSharper disable UnusedMember.Global | ||
// ReSharper disable EventNeverSubscribedTo.Global | ||
|
||
using System; | ||
|
||
namespace Laerdal.McuMgr.FirmwareInstaller.Contracts | ||
{ | ||
/// <summary>Upgrades the firmware on a specific Nordic-chip-based BLE device</summary> | ||
public interface IFirmwareInstaller : IFirmwareInstallerQueryable, IFirmwareInstallerEventSubscribable, IFirmwareInstallerCommandable | ||
public interface IFirmwareInstaller : | ||
IFirmwareInstallerQueryable, | ||
IFirmwareInstallerEventSubscribable, | ||
IFirmwareInstallerCommandable, | ||
IDisposable | ||
{ | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
Laerdal.McuMgr/Shared/FirmwareInstaller/Contracts/Native/INativeFirmwareInstallerProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters