RazorConsoleServiceCollectionExtensions

Class

Extension methods for registering Razor Console services to a service collection.

Namespace: RazorConsole.Core
Assembly: RazorConsole.Core

Definition

public static class RazorConsoleServiceCollectionExtensions

Methods

3
NameTypeDescription
AddRazorConsoleServices(IServiceCollection)()IServiceCollectionAdds the default Razor Console services to the specified IServiceCollection.
AddWidgetTranslator(IServiceCollection, IWidgetTranslator)()IServiceCollectionAdds a custom IWidgetTranslator instance that runs before the built-in widget translation.
AddWidgetTranslator<TTranslator>(IServiceCollection)()IServiceCollectionAdds a custom IWidgetTranslator that runs before the built-in widget translation.