File: AppEvent.cs
Web Access
Project: src\playground\nats\Nats.Common\Nats.Common.csproj (Nats.Common)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Text.Json.Serialization;
 
namespace Nats.Common;
 
public record AppEvent(string Subject, string Name, string Description, decimal Priority);
 
[JsonSerializable(typeof(AppEvent))]
[JsonSourceGenerationOptions(PropertyNameCaseInsensitive = true)]
public partial class AppJsonContext : JsonSerializerContext
{
}