dolittle/DotNET.SDK

View on GitHub
Source/Events.Filters/FilterCallbacks.cs

Summary

Maintainability
A
0 mins
Test Coverage
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Threading.Tasks;

namespace Dolittle.SDK.Events.Filters;

/// <summary>
/// Filters an event.
/// </summary>
/// <param name="event">The event.</param>
/// <param name="eventContext">The <see cref="EventContext" />.</param>
public delegate Task<bool> FilterEventCallback(object @event, EventContext eventContext);

/// <summary>
/// Filters an event to a partition.
/// </summary>
/// <param name="event">The event.</param>
/// <param name="eventContext">The <see cref="EventContext" />.</param>
public delegate Task<PartitionedFilterResult> PartitionedFilterEventCallback(object @event, EventContext eventContext);