Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.Messages/ServiceCollectionExtensions.cs
/// <summary>
///     Add operation messages UI generation services.
/// </summary>
/// <param name="serviceCollection">The <see cref="IServiceCollection" /> object.</param>
Add operation messages UI generation services.
Add operation messages UI generation services .
public static void AddOperationMessageUIGenerators(this IServiceCollection serviceCollection)
		{
			serviceCollection
				.TryAddSingleton<IOperationMessageLevelClassMapper, DefaultOperationMessageLevelClassMapper>();
			serviceCollection.TryAddScoped<IOperationMessageHtmlGenerator, DefaultOperationMessageHtmlGenerator>();
		}
public static void AddOperationMessageUIGenerators ( this IServiceCollection serviceCollection ) { serviceCollection . TryAddSingleton < IOperationMessageLevelClassMapper , DefaultOperationMessageLevelClassMapper > ( ) ; serviceCollection . TryAddScoped < IOperationMessageHtmlGenerator , DefaultOperationMessageHtmlGenerator > ( ) ; }
Add operation messages UI generation services.
Add operation messages UI generation services .
IServiceCollection
this
serviceCollection
None