Skip to content

Commit

Permalink
Expose logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Marfusios committed Feb 16, 2024
1 parent 5b5e91c commit c1b8083
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Project defaults -->

<PropertyGroup>
<Version>2.2.0</Version>
<Version>2.2.1</Version>
</PropertyGroup>

</Project>
4 changes: 2 additions & 2 deletions src/Binance.Client.Websocket/Binance.Client.Websocket.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Marfusios/binance-client-websocket</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/Marfusios/binance-client-websocket/master/src/Binance.Client.Websocket/binance-icon.png</PackageIconUrl>
<PackageIcon>binance-icon.png</PackageIcon>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/Marfusios/binance-client-websocket</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>Git</RepositoryType>
Expand All @@ -31,7 +31,7 @@
</ItemGroup>

<ItemGroup>
<None Include="binance-icon.png" Pack="true" PackagePath="" />
<None Include="icon.png" Pack="true" PackagePath="" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions src/Binance.Client.Websocket/Client/BinanceWebsocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public BinanceWebsocketClient(IBinanceCommunicator communicator, ILogger<Binance
/// </summary>
public BinanceClientStreams Streams { get; } = new BinanceClientStreams();

/// <summary>
/// Expose logger for this client
/// </summary>
public ILogger<BinanceWebsocketClient> Logger => _logger;

/// <summary>
/// Cleanup everything
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace Binance.Client.Websocket.Websockets
public class BinanceWebsocketCommunicator : WebsocketClient, IBinanceCommunicator
{
/// <inheritdoc />
public BinanceWebsocketCommunicator(Uri url, Func<ClientWebSocket> clientFactory = null)
public BinanceWebsocketCommunicator(Uri url, Func<ClientWebSocket>? clientFactory = null)
: base(url, clientFactory)
{
}

/// <inheritdoc />
public BinanceWebsocketCommunicator(Uri url, ILogger<BinanceWebsocketCommunicator> logger, Func<ClientWebSocket> clientFactory = null)
public BinanceWebsocketCommunicator(Uri url, ILogger<BinanceWebsocketCommunicator> logger, Func<ClientWebSocket>? clientFactory = null)
: base(url, logger, clientFactory)
{
}
Expand Down
File renamed without changes

0 comments on commit c1b8083

Please sign in to comment.