public void Start(String storageName, Boolean isDebugMode, DaemonNT.Configuration.Settings settings) { OnStartTraceLoggerStorageArgs args = new OnStartTraceLoggerStorageArgs(); args.StorageName = storageName; args.IsDebugMode = isDebugMode; args.Settings = settings; storage.Start(args); }
protected override void OnStart(OnStartTraceLoggerStorageArgs args) { this.isDebugMode = args.IsDebugMode; this.storageName = args.StorageName; if (this.isDebugMode) { Console.WriteLine(String.Format("Initialized trace-logger-storage Name={0}.", this.storageName)); Console.WriteLine(args.Settings.Parameters["x"]); } }