// Copyright (c) HelloShop Corporation. All rights reserved.
// See the license file in the project root for more information.

using Dapr.Client;

namespace HelloShop.DistributedLock.Dapr
{
#pragma warning disable CS0618
    public class DaprDistributedLockResult(TryLockResponse tryLockResponse) : IDistributedLockResult
#pragma warning restore CS0618
    {
        public async ValueTask DisposeAsync()
        {
            await tryLockResponse.DisposeAsync().ConfigureAwait(false);
            GC.SuppressFinalize(this);
        }
    }
}
