-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify factory APIs for creating RouteBEchonetLiteHandler
- Loading branch information
Showing
6 changed files
with
65 additions
and
72 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...teB.BP35XX/Smdn.Net.EchonetLite.RouteB.Transport.BP35XX/BP35A1RouteBEchonetLiteHandler.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-FileCopyrightText: 2025 smdn <smdn@smdn.jp> | ||
// SPDX-License-Identifier: MIT | ||
using System; | ||
|
||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Logging; | ||
|
||
using Smdn.Devices.BP35XX; | ||
using Smdn.Net.EchonetLite.RouteB.Transport.SkStackIP; | ||
|
||
namespace Smdn.Net.EchonetLite.RouteB.Transport.BP35XX; | ||
|
||
public sealed class BP35A1RouteBEchonetLiteHandler : SkStackRouteBUdpEchonetLiteHandler { | ||
public BP35A1RouteBEchonetLiteHandler( | ||
BP35A1 client, | ||
SkStackRouteBSessionConfiguration sessionConfiguration, | ||
bool shouldDisposeClient = false, | ||
IServiceProvider? serviceProvider = null | ||
) | ||
: base( | ||
client: client, | ||
sessionConfiguration: sessionConfiguration, | ||
shouldDisposeClient: shouldDisposeClient, | ||
logger: serviceProvider?.GetService<ILoggerFactory>()?.CreateLogger<BP35A1RouteBEchonetLiteHandler>(), | ||
serviceProvider: serviceProvider | ||
) | ||
{ | ||
} | ||
} |
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
11 changes: 0 additions & 11 deletions
11
...StackIP/Smdn.Net.EchonetLite.RouteB.Transport.SkStackIP/SkStackRouteBTransportProtocol.cs
This file was deleted.
Oops, something went wrong.
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