Skip to content

Instantly share code, notes, and snippets.

@justmara
justmara / MediatrStreamBehavior.cs
Last active July 11, 2023 09:05
mediatr strambehavior
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using MediatR.Pipeline;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
siloBuilder.AddIncomingGrainCallFilter<NotFoundOperationResultInterceptor>();
[NotFoundIfNotExists(nameof(CreateOrUpdate))]
public class MyGrain : Grain<MyState>, IMyGrain
{
public Task<OperationResult> CreateOrUpdate(MyData data)
{
}
}