mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Minor clean up
This commit is contained in:
parent
12ddc4bca4
commit
1f59105d4e
@ -4,14 +4,16 @@
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
// </copyright>
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
namespace MpcNET
|
||||
{
|
||||
using System;
|
||||
using Sundew.Base.Reporting;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for implementing an observer for <see cref="MpcConnection"/>.
|
||||
/// </summary>
|
||||
public interface IMpcConnectionReporter
|
||||
public interface IMpcConnectionReporter : IReporter
|
||||
{
|
||||
/// <summary>
|
||||
/// Called when connecting.
|
||||
|
@ -35,13 +35,23 @@ namespace MpcNET
|
||||
|
||||
private string version;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MpcConnection"/> class.
|
||||
/// </summary>
|
||||
/// <param name="server">The server.</param>
|
||||
/// <param name="mpcConnectionReporter">The MPC connection reporter.</param>
|
||||
public MpcConnection(IPEndPoint server, IMpcConnectionReporter mpcConnectionReporter = null)
|
||||
: this(server, null, mpcConnectionReporter)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MpcConnection" /> class.
|
||||
/// </summary>
|
||||
/// <param name="server">The server.</param>
|
||||
/// <param name="commandFactory">The command factory.</param>
|
||||
/// <param name="mpcConnectionReporter">The MPC connection logger.</param>
|
||||
public MpcConnection(IPEndPoint server, ICommandFactory commandFactory = null, IMpcConnectionReporter mpcConnectionReporter = null)
|
||||
public MpcConnection(IPEndPoint server, ICommandFactory commandFactory, IMpcConnectionReporter mpcConnectionReporter = null)
|
||||
{
|
||||
this.commandFactory = commandFactory ?? new CommandFactory();
|
||||
this.mpcConnectionReporter = mpcConnectionReporter;
|
||||
|
@ -8,8 +8,10 @@
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
<RootNamespace>MpcNET</RootNamespace>
|
||||
<Version>0.0.0-pre000</Version>
|
||||
<Version>0.0.1-pre001</Version>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<AssemblyVersion>0.0.1.0</AssemblyVersion>
|
||||
<FileVersion>0.0.1.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
@ -39,7 +41,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
<PackageReference Include="Sundew.Base" Version="3.2.0-pre014" />
|
||||
<PackageReference Include="Sundew.Base" Version="3.2.0-pre015" />
|
||||
<PackageReference Include="System.ValueTuple" Version="4.4.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user