Class CoreExtensions
Core extensions for Onbox's container
Inheritance
System.Object
CoreExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Onbox.Core.V8
Assembly: Onbox.Core.dll
Syntax
public static class CoreExtensions
Methods
| Improve this Doc View SourceAddFileLogging(IContainer, Action<FileLoggingSettings>)
Adds ILoggingService as FileLoggingService to the container
Declaration
public static IContainer AddFileLogging(this IContainer container, Action<FileLoggingSettings> config = null)
Parameters
Type | Name | Description |
---|---|---|
IContainer | container | The container in context |
System.Action<FileLoggingSettings> | config | If no configuration is specified it will log to the user's temp folder with a maximum size of 200kb |
Returns
Type | Description |
---|---|
IContainer | The container in context |
AddMapper(IContainer, Action<MapperActionManager>)
Declaration
public static IContainer AddMapper(this IContainer container, Action<MapperActionManager> config = null)
Parameters
Type | Name | Description |
---|---|---|
IContainer | container | The container in context |
System.Action<MapperActionManager> | config | If no configuration is specified it will add no post mapping actions |
Returns
Type | Description |
---|---|
IContainer | The container in context |
AddOnboxCore(IContainer)
Adds IHttpService, IJsonService, ILoggingService, and IMapper default implementations to the container
Declaration
public static IContainer AddOnboxCore(this IContainer container)
Parameters
Type | Name | Description |
---|---|---|
IContainer | container | The container in context |
Returns
Type | Description |
---|---|
IContainer | The container in context |