public void UpdateBus(string key, object value) { if (!this.Bus.ContainsKey(key)) { this.Bus.Add(key, value); } else { this.Bus[key] = value; } }