protected virtual async Task CoordinateSharedCacheCleanupAsync(ISessionImplementor session, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            var action = new BulkOperationCleanupAction(session, AffectedQueryables);

            await(action.InitAsync(cancellationToken)).ConfigureAwait(false);

            if (session.IsEventSource)
            {
                ((IEventSource)session).ActionQueue.AddAction(action);
            }
        }
Exemplo n.º 2
0
        private async Task CoordinateSharedCacheCleanupAsync(ISessionImplementor session, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            BulkOperationCleanupAction action = new BulkOperationCleanupAction(session, CustomQuery.QuerySpaces);

            await(action.InitAsync(cancellationToken)).ConfigureAwait(false);

            if (session.IsEventSource)
            {
                ((IEventSource)session).ActionQueue.AddAction(action);
            }
        }