123456789101112131415 |
- using Microsoft.Extensions.DependencyInjection;
- using Microsoft.Extensions.Hosting;
- namespace Waaagh.Services.Abstract {
- public interface IMessageCatcher {
- }
- static public partial class IHostBuilderExtensions {
- static public IHostBuilder AddDefaultMessageCatcher(this IHostBuilder builder) {
- return builder.ConfigureServices((services) => {
- services.AddSingleton<IMessageCatcher, MessageCatcher>();
- });
- }
- }
- }
|