diff --git a/appveyor.yml b/appveyor.yml index 8087459..45337b4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,10 +1,9 @@ version: '{build}' skip_tags: true -image: Visual Studio 2017 +image: Visual Studio 2022 configuration: Release -install: build_script: -- ps: ./Build.ps1 +- pwsh: ./Build.ps1 test: off artifacts: - path: artifacts/Seq.Apps.*.nupkg @@ -20,4 +19,4 @@ deploy: artifact: /Seq.Api.*\.nupkg/ tag: v$(appveyor_build_version) on: - branch: master + branch: main diff --git a/asset/seq-apps-runtime.png b/asset/seq-apps-runtime.png new file mode 100644 index 0000000..ed37092 Binary files /dev/null and b/asset/seq-apps-runtime.png differ diff --git a/src/Seq.Apps/Apps/Event.cs b/src/Seq.Apps/Apps/Event.cs index 6d1c5ad..ba3d246 100644 --- a/src/Seq.Apps/Apps/Event.cs +++ b/src/Seq.Apps/Apps/Event.cs @@ -1,4 +1,5 @@ using System; +using System.ComponentModel; namespace Seq.Apps { @@ -13,13 +14,13 @@ public class Event /// /// The event ID. /// The event type. - /// The + /// The event timestamp. /// - public Event(string id, uint eventType, DateTime timestampUtc, TData data) + public Event(string id, uint eventType, DateTime timestamp, TData data) { Id = id; EventType = eventType; - TimestampUtc = timestampUtc; + Timestamp = timestamp; Data = data; } @@ -30,9 +31,9 @@ public Event(string id, uint eventType, DateTime timestampUtc, TData data) public uint EventType { get; } /// - /// The UTC timestamp at which the event was created. + /// The event timestamp. /// - public DateTime TimestampUtc { get; } + public DateTime Timestamp { get; } /// /// The event payload. @@ -43,5 +44,12 @@ public Event(string id, uint eventType, DateTime timestampUtc, TData data) /// The Seq event ID. /// public string Id { get; } + + + /// + /// The event timestamp. + /// + [Obsolete("Use `Timestamp` instead."), EditorBrowsable(EditorBrowsableState.Never)] + public DateTime TimestampUtc => Timestamp; } -} \ No newline at end of file +} diff --git a/src/Seq.Apps/Apps/ISubscribeTo.cs b/src/Seq.Apps/Apps/ISubscribeTo.cs index 03d9c3b..11a8b4c 100644 --- a/src/Seq.Apps/Apps/ISubscribeTo.cs +++ b/src/Seq.Apps/Apps/ISubscribeTo.cs @@ -4,6 +4,7 @@ /// Subscribes an app to a typed event. /// /// The type representing event data. + /// Use for new code when possible. public interface ISubscribeTo { /// diff --git a/src/Seq.Apps/Apps/ISubscribeToAsync.cs b/src/Seq.Apps/Apps/ISubscribeToAsync.cs index e0038c1..131ce59 100644 --- a/src/Seq.Apps/Apps/ISubscribeToAsync.cs +++ b/src/Seq.Apps/Apps/ISubscribeToAsync.cs @@ -6,6 +6,7 @@ namespace Seq.Apps /// Subscribes a app to a typed event, with the event handled asynchronously. /// /// The type representing event data. + /// Use for new code when possible. public interface ISubscribeToAsync { /// diff --git a/src/Seq.Apps/Seq.Apps.csproj b/src/Seq.Apps/Seq.Apps.csproj index 965f6b8..c054e88 100644 --- a/src/Seq.Apps/Seq.Apps.csproj +++ b/src/Seq.Apps/Seq.Apps.csproj @@ -1,30 +1,24 @@ - net4.5.2;netstandard2.0 - 2021.4.1 + netstandard2.0 + 2023.4.0 Seq - true + true true C# API for Seq creating hosted apps. Datalust Pty Ltd seq - https://getseq.net/images/seq-nuget.png + seq-apps-runtime.png https://github.com/datalust/seq-apps-runtime - http://www.apache.org/licenses/LICENSE-2.0 - - - - true + Apache-2.0 - + - - - - - + + + diff --git a/test/Seq.Apps.Tests/Seq.Apps.Tests.csproj b/test/Seq.Apps.Tests/Seq.Apps.Tests.csproj index 3b453e2..d4ab59c 100644 --- a/test/Seq.Apps.Tests/Seq.Apps.Tests.csproj +++ b/test/Seq.Apps.Tests/Seq.Apps.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp2.0;net46 + net6.0 true @@ -15,9 +15,4 @@ - - - - -