forked from xiongyuxing/tiku-backend.net
17 lines
507 B
C#
17 lines
507 B
C#
namespace Tiku.Application.Security;
|
|
|
|
public interface ITenantExecutionScope
|
|
{
|
|
Task ExecuteAsync(
|
|
Guid? targetTenantId,
|
|
string reason,
|
|
Func<IServiceProvider, CancellationToken, Task> operation,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<TResult> ExecuteAsync<TResult>(
|
|
Guid? targetTenantId,
|
|
string reason,
|
|
Func<IServiceProvider, CancellationToken, Task<TResult>> operation,
|
|
CancellationToken cancellationToken = default);
|
|
}
|