Files
GX.O3.WMS/APP.O3/Shared/Data/DictionaryEndpointProvider.cs

28 lines
638 B
C#
Executable File

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