using System;

namespace CryptoExchange.Net.Interfaces.Clients
{
    /// <summary>
    /// Client for accessing Websocket API's for different exchanges
    /// </summary>
    public interface ICryptoSocketClient
    {
        /// <summary>
        /// Try get a client by type for the service collection
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        T TryGet<T>(Func<T> createFunc);
    }
}
