mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-23 16:12:22 +00:00

During the recent fix to SendMessageAsync's recurrence, we added code to ensure blocking on Publish. This adds additional resilience to the Publish delivery, ensuring that every subscribed agent receives the message, regardless of errors in the middle.
23 lines
461 B
C#
23 lines
461 B
C#
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// TestMessages.cs
|
|
|
|
namespace Microsoft.AutoGen.Core.Tests;
|
|
|
|
public class TextMessage
|
|
{
|
|
public string Source { get; set; } = "";
|
|
public string Content { get; set; } = "";
|
|
}
|
|
|
|
public class RpcTextMessage
|
|
{
|
|
public string Source { get; set; } = "";
|
|
public string Content { get; set; } = "";
|
|
}
|
|
|
|
public sealed class BasicMessage
|
|
{
|
|
public string Content { get; set; } = string.Empty;
|
|
}
|
|
|