public ChaosWrap(string jsonString) { var chaos = jsonString; this._policy = this.CreateInjectionFromString(jsonString); CreateInjection(); }
public ChaosWrap() { var chaos = Environment.GetEnvironmentVariable("CHAOS_PARAM"); this._policy = chaos != null?this.CreateInjectionFromString(chaos) : new InjectionConfig(); CreateInjection(); }