public static IServiceCollection AddWebNotification(this IServiceCollection services, WebOptions options) { if (options.UsedFake()) { services.AddFakeWebNotification(); } else if (options.UsedSignalR()) { services.AddSignalRWebNotification(); } return(services); }