Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New IAdvancedAsyncStorage interface #618

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Correcting wrong C# version.
  • Loading branch information
profet23 committed Aug 9, 2022
commit 830aee2efca9d0a1e92ceb8120856f513bfe12ab
21 changes: 11 additions & 10 deletions src/MiniProfiler.Shared/Storage/IAdvancedAsyncStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
using System.Collections.Generic;
using System.Threading.Tasks;

namespace StackExchange.Profiling.Storage;

/// <summary>
/// Provides saving and loading <see cref="MiniProfiler"/>s to a storage medium with some advanced operations.
/// </summary>
public interface IAdvancedAsyncStorage : IAsyncStorage
namespace StackExchange.Profiling.Storage
{
/// <summary>
/// Asynchronously sets the provided profiler sessions to "viewed"
/// Provides saving and loading <see cref="MiniProfiler"/>s to a storage medium with some advanced operations.
/// </summary>
/// <param name="user">The user to set this profiler ID as viewed for.</param>
/// <param name="ids">The profiler IDs to set viewed.</param>
Task SetViewedAsync(string user, IEnumerable<Guid> ids);
public interface IAdvancedAsyncStorage : IAsyncStorage
{
/// <summary>
/// Asynchronously sets the provided profiler sessions to "viewed"
/// </summary>
/// <param name="user">The user to set this profiler ID as viewed for.</param>
/// <param name="ids">The profiler IDs to set viewed.</param>
Task SetViewedAsync(string user, IEnumerable<Guid> ids);
}
}