public void Init(string path) { lock (Rock) { _config = JsonConvert.DeserializeObject<PrudenceConfiguration>(File.ReadAllText(path)); } }
public virtual void Init(PrudenceConfiguration configuration) { if (configuration == null) throw new ArgumentNullException("configuration"); Config = configuration; Log = LogManager.GetLogger(GetType()); }