2 instantiations of AppEvent
Aspire.Hosting.Nats.Tests (2)
artifacts\obj\Aspire.Hosting.Nats.Tests\Debug\net8.0\System.Text.Json.SourceGeneration\System.Text.Json.SourceGeneration.JsonSourceGenerator\AppJsonContext.AppEvent.g.cs (1)
30
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Hosting.Nats.Tests.
AppEvent
((string)args[0], (string)args[1], (string)args[2], (decimal)args[3]),
NatsFunctionalTests.cs (1)
313
var appEvent = new
AppEvent
(SubjectName, $"test-event-{i}", $"test-event-description-{i}", i);
28 references to AppEvent
Aspire.Hosting.Nats.Tests (28)
AppEvent.cs (1)
10
[JsonSerializable(typeof(
AppEvent
))]
artifacts\obj\Aspire.Hosting.Nats.Tests\Debug\net8.0\System.Text.Json.SourceGeneration\System.Text.Json.SourceGeneration.JsonSourceGenerator\AppJsonContext.AppEvent.g.cs (22)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Nats.Tests.
AppEvent
>? _AppEvent;
18
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Nats.Tests.
AppEvent
> AppEvent
20
get => _AppEvent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Nats.Tests.
AppEvent
>)Options.GetTypeInfo(typeof(global::Aspire.Hosting.Nats.Tests.
AppEvent
));
23
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Nats.Tests.
AppEvent
> Create_AppEvent(global::System.Text.Json.JsonSerializerOptions options)
25
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Hosting.Nats.Tests.
AppEvent
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Nats.Tests.
AppEvent
> jsonTypeInfo))
27
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Hosting.Nats.Tests.
AppEvent
>
36
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Hosting.Nats.Tests.
AppEvent
>(options, objectInfo);
53
DeclaringType = typeof(global::Aspire.Hosting.Nats.Tests.
AppEvent
),
55
Getter = static obj => ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)obj).Subject,
72
DeclaringType = typeof(global::Aspire.Hosting.Nats.Tests.
AppEvent
),
74
Getter = static obj => ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)obj).Name,
91
DeclaringType = typeof(global::Aspire.Hosting.Nats.Tests.
AppEvent
),
93
Getter = static obj => ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)obj).Description,
110
DeclaringType = typeof(global::Aspire.Hosting.Nats.Tests.
AppEvent
),
112
Getter = static obj => ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)obj).Priority,
129
private void AppEventSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Hosting.Nats.Tests.
AppEvent
? value)
139
writer.WriteString(PropName_Subject, ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)value).Subject);
140
writer.WriteString(PropName_Name, ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)value).Name);
141
writer.WriteString(PropName_Description, ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)value).Description);
142
writer.WriteNumber(PropName_Priority, ((global::Aspire.Hosting.Nats.Tests.
AppEvent
)value).Priority);
artifacts\obj\Aspire.Hosting.Nats.Tests\Debug\net8.0\System.Text.Json.SourceGeneration\System.Text.Json.SourceGeneration.JsonSourceGenerator\AppJsonContext.GetJsonTypeInfo.g.cs (1)
26
if (type == typeof(global::Aspire.Hosting.Nats.Tests.
AppEvent
))
NatsFunctionalTests.cs (4)
287
var events = new List<
AppEvent
>();
288
await foreach (var msg in consumer.ConsumeAsync<
AppEvent
>(cancellationToken: token))
300
var
@event = events[i];
313
var
appEvent = new AppEvent(SubjectName, $"test-event-{i}", $"test-event-description-{i}", i);