mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
f5b35d8403
* Implement CosmosDB actor state storage. * Fix. * Minor fixes. * Fixes. * Make CosmosDB initialization be lazy. * Remove unnecessary read from write path. * Throw on empty writes. * Add arg validation for read. * Add CosmosIdSanitizer. * Fix. * Fix. * Simplify doc IDs. * Update comment. * fb * Make LazyCosmosContainer internal and add tests. * Make test constants public and remove IVT. * Use source generated JSON context for future nativeAOT support. * Re-add dropped comments.
22 lines
682 B
C#
22 lines
682 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace Microsoft.Extensions.AI.Agents.Runtime.Storage.CosmosDB.Tests;
|
|
|
|
/// <summary>
|
|
/// Skip test if running on CosmosDB emulator.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)]
|
|
public sealed class SkipOnEmulatorFactAttribute : FactAttribute
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SkipOnEmulatorFactAttribute"/> class.
|
|
/// </summary>
|
|
public SkipOnEmulatorFactAttribute()
|
|
{
|
|
if (CosmosDBTestConstants.UseEmulatorForTesting)
|
|
{
|
|
this.Skip = "Skipping test on CosmosDB emulator.";
|
|
}
|
|
}
|
|
}
|