using System; using System.Collections.Generic; namespace Opsoft.NetCore.O3App.Shared.Data { public class DictionaryEndpointProvider : IDbEndpointProvider { private IDictionary _endpoints; public event EventHandler EndpointChanged; public DictionaryEndpointProvider(IDictionary endpoints) { _endpoints = endpoints; } public IDictionary GetEndpoints() { return _endpoints; } public void TriggerEvent(EndpointChangedEventArgs args) { this.EndpointChanged?.Invoke(this, args); } } }