.net core 3.1 mediatr code example Example: .net core 3.1 mediatr services.AddMediatR(Assembly.GetExecutingAssembly());