コード例 #1
0
 public void Init(string path)
 {
     lock (Rock)
     {
         _config = JsonConvert.DeserializeObject<PrudenceConfiguration>(File.ReadAllText(path));
     }
 }
コード例 #2
0
        public virtual void Init(PrudenceConfiguration configuration)
        {
            if (configuration == null) throw new ArgumentNullException("configuration");

            Config = configuration;

            Log = LogManager.GetLogger(GetType());
        }