public SystemState Create() { SystemState systemState = CreateFileBackedSystemState(); SystemState fallbackSystemState; if (TryLoadJsonSystemState("local-toggles.json", out fallbackSystemState)) { systemState = new PrimaryFallbackSystemStateImpl(systemState, fallbackSystemState); } if (TryLoadJsonSystemState("remote-toggles.json", out fallbackSystemState)) { systemState = new PrimaryFallbackSystemStateImpl(systemState, fallbackSystemState); } return systemState; }
public SystemState Create() { SystemState systemState = CreateFileBackedSystemState(); SystemState fallbackSystemState; if (TryLoadJsonSystemState("local-toggles.json", out fallbackSystemState)) { systemState = new PrimaryFallbackSystemStateImpl(systemState, fallbackSystemState); } if (TryLoadJsonSystemState("remote-toggles.json", out fallbackSystemState)) { systemState = new PrimaryFallbackSystemStateImpl(systemState, fallbackSystemState); } return(systemState); }