1
0
mirror of synced 2024-11-14 17:13:50 +00:00
FSFlightLogger/SimConnect/ISimConnectClientFactory.cs

18 lines
609 B
C#

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);
}
}