コード例 #1
0
        public ChaosWrap(string jsonString)
        {
            var chaos = jsonString;

            this._policy = this.CreateInjectionFromString(jsonString);
            CreateInjection();
        }
コード例 #2
0
        public ChaosWrap()
        {
            var chaos = Environment.GetEnvironmentVariable("CHAOS_PARAM");

            this._policy = chaos != null?this.CreateInjectionFromString(chaos) : new InjectionConfig();

            CreateInjection();
        }