Class UnityFileLogInstallationStep
Installs the file log sink into the running composition.
Inherited Members
Namespace: Serenity.EventDispatcher.Installation.Installers
Assembly: Serenity.UnityFileLogging.Installation.dll
Syntax
public class UnityFileLogInstallationStep
Remarks
WebGL exemption: in the WebGL runtime player Application.persistentDataPath maps to the
browser's IDBFS mount, and every file write Serenity issues there triggers a synchronous
JS_FileSystem_Sync round-trip to IndexedDB. Skipping the installer entirely is the contained fix: the
routing fallback chain already selects the console sink when no file installer exists, so every
ILogService consumer transparently logs to the console on WebGL with no other change. Every
other platform keeps the dual-sink behaviour.
Constructors
UnityFileLogInstallationStep()
Declaration
public UnityFileLogInstallationStep()
Methods
Install(IUnityInstallationContext, UnityFileLogSettings)
Builds the sink's installer, installs it and publishes its service.
Declaration
public UnityFileLogInstaller Install(IUnityInstallationContext installationContext, UnityFileLogSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| IUnityInstallationContext | installationContext | The composition root this step installs into. |
| UnityFileLogSettings | settings | The file log settings wired on the composition root. |
Returns
| Type | Description |
|---|---|
| UnityFileLogInstaller | The installer, or null on a platform that skips the file sink. |