Skip to content

M_NChronicle_Core_NChronicle_ConfigureFrom

Andy James edited this page Aug 3, 2017 · 1 revision

NChronicle.ConfigureFrom Method

Configure all new and existing Chronicle instances with options and libraries from an XML file.

Namespace: NChronicle.Core
Assembly: NChronicle.Core (in NChronicle.Core.dll) Version: 1.0.3.0 (1.0.3.0)

Syntax

C#

public static void ConfigureFrom(
	string path,
	bool watch = true,
	int watchBufferTime = 1000
)

VB

Public Shared Sub ConfigureFrom ( 
	path As String,
	Optional watch As Boolean = true,
	Optional watchBufferTime As Integer = 1000
)

F#

static member ConfigureFrom : 
        path : string * 
        ?watch : bool * 
        ?watchBufferTime : int 
(* Defaults:
        let _watch = defaultArg watch true
        let _watchBufferTime = defaultArg watchBufferTime 1000
*)
-> unit 

Parameters

 

path
Type: System.String
Path to the XML file.
watch (Optional)
Type: System.Boolean
Watch for changes to the file and reconfigure when it changes.
watchBufferTime (Optional)
Type: System.Int32
Time in milliseconds to wait after a change to the file until reconfiguring.

See Also

Reference

NChronicle Class
NChronicle.Core Namespace

NChronicle

ChronicleConfigurationDelegate

IChronicle

IChronicleLibrary

Chronicle

ChronicleConfiguration

ChronicleLevel

ChronicleRecord

Clone this wiki locally