-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate async flow / exceptions via
Task
- Loading branch information
1 parent
8ab3360
commit 9e70da9
Showing
7 changed files
with
142 additions
and
98 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
9 changes: 3 additions & 6 deletions
9
lib/ShortDev.Microsoft.ConnectedDevices/Transports/ICdpDiscoverableTransport.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,7 @@ | ||
using System.Threading; | ||
|
||
namespace ShortDev.Microsoft.ConnectedDevices.Transports; | ||
|
||
namespace ShortDev.Microsoft.ConnectedDevices.Transports; | ||
public interface ICdpDiscoverableTransport : ICdpTransport | ||
{ | ||
void Advertise(LocalDeviceInfo deviceInfo, CancellationToken cancellationToken); | ||
Task Advertise(LocalDeviceInfo deviceInfo, CancellationToken cancellationToken); | ||
event DeviceDiscoveredEventHandler? DeviceDiscovered; | ||
void Discover(CancellationToken cancellationToken); | ||
Task Discover(CancellationToken cancellationToken); | ||
} |
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
Oops, something went wrong.