Skip to content

Commit

Permalink
Merge pull request #3 from smdn/releases/Smdn.Net.EchonetLite.Primiti…
Browse files Browse the repository at this point in the history
…ves-2.0.0-1736626986

Release main/Smdn.Net.EchonetLite.Primitives-2.0.0
  • Loading branch information
smdn authored Jan 11, 2025
2 parents e711220 + 086d5eb commit 1c83e8f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 106 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
// Smdn.Net.EchonetLite.Primitives.dll (Smdn.Net.EchonetLite.Primitives-2.0.0-preview1)
// Smdn.Net.EchonetLite.Primitives.dll (Smdn.Net.EchonetLite.Primitives-2.0.0)
// Name: Smdn.Net.EchonetLite.Primitives
// AssemblyVersion: 2.0.0.0
// InformationalVersion: 2.0.0-preview1+a49cbd05bcf92f5f6205892f53982b36f3d6b0e2
// InformationalVersion: 2.0.0+e711220aebaba7dfe17051eed5e6dd8890ffd4d1
// TargetFramework: .NETCoreApp,Version=v8.0
// Configuration: Release
// Referenced assemblies:
// System.ComponentModel.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// System.ComponentModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Memory, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
// System.Net.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Threading, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations

using System;
using System.Buffers;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Smdn.Net.EchonetLite;

namespace Smdn.Net.EchonetLite {
public interface IEchonetLiteHandler {
event EventHandler<(IPAddress Address, ReadOnlyMemory<byte> Data)> Received;
Func<IPAddress, ReadOnlyMemory<byte>, CancellationToken, ValueTask>? ReceiveCallback { get; set; }

ISynchronizeInvoke? SynchronizingObject { get; set; }

ValueTask SendAsync(IPAddress? address, ReadOnlyMemory<byte> data, CancellationToken cancellationToken);
ValueTask SendAsync(ReadOnlyMemory<byte> data, CancellationToken cancellationToken);
ValueTask SendToAsync(IPAddress remoteAddress, ReadOnlyMemory<byte> data, CancellationToken cancellationToken);
}

public interface IEchonetObjectSpecification {
Expand All @@ -52,28 +52,41 @@ public abstract class EchonetLiteHandler :
IDisposable,
IEchonetLiteHandler
{
public event EventHandler<(IPAddress, ReadOnlyMemory<byte>)> Received { add; remove; }
protected class ReceivedFromUnknownAddressException : InvalidOperationException {
public ReceivedFromUnknownAddressException() {}
public ReceivedFromUnknownAddressException(string message) {}
public ReceivedFromUnknownAddressException(string message, Exception? innerException) {}
}

public const int DefaultPort = 3610;

protected EchonetLiteHandler() {}
protected EchonetLiteHandler(ILogger? logger, IServiceProvider? serviceProvider) {}

protected bool IsDisposed { get; }
protected bool IsReceiving { get; }
[MemberNotNullWhen(true, "taskReceiveEchonetLite")]
protected bool IsReceiving { [MemberNotNullWhen(true, "taskReceiveEchonetLite")] get; }
public abstract IPAddress? LocalAddress { get; }
public abstract ISynchronizeInvoke? SynchronizingObject { get; set; }
protected ILogger? Logger { get; }
public Func<IPAddress, ReadOnlyMemory<byte>, CancellationToken, ValueTask>? ReceiveCallback { get; set; }

protected virtual void Dispose(bool disposing) {}
public void Dispose() {}
public async ValueTask DisposeAsync() {}
protected virtual async ValueTask DisposeAsyncCore() {}
protected virtual bool HandleReceiveTaskException(Exception exception) {}
protected abstract ValueTask<IPAddress> ReceiveAsyncCore(IBufferWriter<byte> buffer, CancellationToken cancellationToken);
public async ValueTask SendAsync(IPAddress? address, ReadOnlyMemory<byte> data, CancellationToken cancellationToken) {}
public ValueTask SendAsync(ReadOnlyMemory<byte> data, CancellationToken cancellationToken) {}
protected abstract ValueTask SendAsyncCore(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken);
public ValueTask SendToAsync(IPAddress remoteAddress, ReadOnlyMemory<byte> data, CancellationToken cancellationToken) {}
protected abstract ValueTask SendToAsyncCore(IPAddress remoteAddress, ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken);
protected void StartReceiving() {}
protected void StartReceiving(TaskFactory? taskFactoryForReceiving) {}
protected async ValueTask StopReceivingAsync() {}
protected virtual void ThrowIfDisposed() {}
[MemberNotNull("taskReceiveEchonetLite")]
protected void ThrowIfNotReceiving() {}
protected void ThrowIfReceiving() {}
}
}
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.4.1.0.
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.5.0.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.3.1.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
// Smdn.Net.EchonetLite.Primitives.dll (Smdn.Net.EchonetLite.Primitives-2.0.0-preview1)
// Smdn.Net.EchonetLite.Primitives.dll (Smdn.Net.EchonetLite.Primitives-2.0.0)
// Name: Smdn.Net.EchonetLite.Primitives
// AssemblyVersion: 2.0.0.0
// InformationalVersion: 2.0.0-preview1+a49cbd05bcf92f5f6205892f53982b36f3d6b0e2
// InformationalVersion: 2.0.0+e711220aebaba7dfe17051eed5e6dd8890ffd4d1
// TargetFramework: .NETStandard,Version=v2.1
// Configuration: Release
// Referenced assemblies:
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
#nullable enable annotations

using System;
using System.Buffers;
using System.Collections.Generic;
using System.ComponentModel;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Smdn.Net.EchonetLite;

namespace Smdn.Net.EchonetLite {
public interface IEchonetLiteHandler {
event EventHandler<(IPAddress Address, ReadOnlyMemory<byte> Data)> Received;
Func<IPAddress, ReadOnlyMemory<byte>, CancellationToken, ValueTask>? ReceiveCallback { get; set; }

ISynchronizeInvoke? SynchronizingObject { get; set; }

ValueTask SendAsync(IPAddress? address, ReadOnlyMemory<byte> data, CancellationToken cancellationToken);
ValueTask SendAsync(ReadOnlyMemory<byte> data, CancellationToken cancellationToken);
ValueTask SendToAsync(IPAddress remoteAddress, ReadOnlyMemory<byte> data, CancellationToken cancellationToken);
}

public interface IEchonetObjectSpecification {
Expand All @@ -48,28 +48,39 @@ public abstract class EchonetLiteHandler :
IDisposable,
IEchonetLiteHandler
{
public event EventHandler<(IPAddress, ReadOnlyMemory<byte>)> Received { add; remove; }
protected class ReceivedFromUnknownAddressException : InvalidOperationException {
public ReceivedFromUnknownAddressException() {}
public ReceivedFromUnknownAddressException(string message) {}
public ReceivedFromUnknownAddressException(string message, Exception? innerException) {}
}

public const int DefaultPort = 3610;

protected EchonetLiteHandler() {}
protected EchonetLiteHandler(ILogger? logger, IServiceProvider? serviceProvider) {}

protected bool IsDisposed { get; }
protected bool IsReceiving { get; }
public abstract IPAddress? LocalAddress { get; }
public abstract ISynchronizeInvoke? SynchronizingObject { get; set; }
protected ILogger? Logger { get; }
public Func<IPAddress, ReadOnlyMemory<byte>, CancellationToken, ValueTask>? ReceiveCallback { get; set; }

protected virtual void Dispose(bool disposing) {}
public void Dispose() {}
public async ValueTask DisposeAsync() {}
protected virtual async ValueTask DisposeAsyncCore() {}
protected virtual bool HandleReceiveTaskException(Exception exception) {}
protected abstract ValueTask<IPAddress> ReceiveAsyncCore(IBufferWriter<byte> buffer, CancellationToken cancellationToken);
public async ValueTask SendAsync(IPAddress? address, ReadOnlyMemory<byte> data, CancellationToken cancellationToken) {}
public ValueTask SendAsync(ReadOnlyMemory<byte> data, CancellationToken cancellationToken) {}
protected abstract ValueTask SendAsyncCore(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken);
public ValueTask SendToAsync(IPAddress remoteAddress, ReadOnlyMemory<byte> data, CancellationToken cancellationToken) {}
protected abstract ValueTask SendToAsyncCore(IPAddress remoteAddress, ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken);
protected void StartReceiving() {}
protected void StartReceiving(TaskFactory? taskFactoryForReceiving) {}
protected async ValueTask StopReceivingAsync() {}
protected virtual void ThrowIfDisposed() {}
protected void ThrowIfNotReceiving() {}
protected void ThrowIfReceiving() {}
}
}
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.4.1.0.
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.5.0.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.3.1.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)

0 comments on commit 1c83e8f

Please sign in to comment.