1
0
mirror of synced 2024-11-15 01:23:49 +00:00
FSFlightLogger/SimConnect/ISimConnectClientFactory.cs

18 lines
609 B
C#
Raw Permalink Normal View History

2020-09-02 10:49:09 +00:00
using System.Threading.Tasks;
namespace SimConnect
{
/// <summary>
/// Provides a factory for creating a SimConnect client instance.
/// </summary>
public interface ISimConnectClientFactory
{
/// <summary>
/// Tries to connect to any of the compatible running SimConnect servers.
/// </summary>
/// <param name="appName">The application name passed to the SimConnect server.</param>
/// <returns>A client interface if succesful or nil if no connection could be made.</returns>
Task<ISimConnectClient> TryConnect(string appName);
}
}