how to use mediatr 9 in .net core 3.1 code example Example: .net core 3.1 mediatr services.AddMediatR(Assembly.GetExecutingAssembly());