SimListener 2.1.1

dotnet add package SimListener --version 2.1.1
                    
NuGet\Install-Package SimListener -Version 2.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimListener" Version="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimListener" Version="2.1.1" />
                    
Directory.Packages.props
<PackageReference Include="SimListener" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimListener --version 2.1.1
                    
#r "nuget: SimListener, 2.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=SimListener&version=2.1.1
                    
Install as a Cake Addin
#tool nuget:?package=SimListener&version=2.1.1
                    
Install as a Cake Tool

Flight Simulator Listener Library

Purpose

This library provides a wrapper around the Microsoft.FlightSimulator.SimConnect library.

To use this library, you need to have the Microsoft Flight Simulator installed and the SimConnect SDK available.

You can find the SimConnect SDK in the Microsoft Flight Simulator SDK installation directory, typically located at C:\Program Files (x86)\Microsoft Flight Simulator SDK\SimConnect SDK.

This library simplifies the process of connecting to the simulator, subscribing to events, and receiving data updates.

The library is designed to be used in .NET applications, and it provides a simple and intuitive API for interacting with the simulator.

Features

  • Connect to Microsoft Flight Simulator using SimConnect

  • Subscribe to simulator events and receive data updates

  • Handle simulator events in a straightforward manner

  • Access simulator data in a structured way

  • supports both synchronous and asynchronous operations

Installation

dotnet add package SimListener --version 2.0.0

see NuGet for more details.

Initialization

To use the library, you need to initialize the SimListener class with the appropriate parameters. Here's an example of how to do this:

using SimListener;
using System.Threading.Tasks;

class Program
{
	static async Task Main(string[] args)
	{
		// Initialize the SimListener with the default parameters
		var simListener = new SimListener.SimListener();
		// Connect to the simulator
		await simListener.ConnectAsync();
		// Subscribe to events or data updates as needed
		simListener.OnDataReceived += (sender, data) =>
		{
			// Handle received data
			Console.WriteLine($"Received data: {data}");
		};
		// Keep the application running to receive updates
		Console.WriteLine("Press any key to exit...");
		Console.ReadKey();
		// Disconnect when done
		await simListener.DisconnectAsync();
	}
}

Usage

You can use the SimListener class to subscribe to various simulator events and receive data updates. The library provides a simple API for accessing simulator data, such as aircraft position, speed, altitude, and more.

Example of Subscribing to Events


using SimListener;
using System.Threading.Tasks;

class Program
{
	static async Task Main(string[] args)
	{
		// Initialize the SimListener with the default parameters
		var simListener = new SimListener.SimListener();
		// Connect to the simulator
		await simListener.ConnectAsync();
		// Subscribe to the OnDataReceived event
		simListener.OnDataReceived += (sender, data) =>
		{
			// Handle received data
			Console.WriteLine($"Received data: {data}");
		};
		// Keep the application running to receive updates
		Console.WriteLine("Press any key to exit...");
		Console.ReadKey();
		// Disconnect when done
		await simListener.DisconnectAsync();
	}
}

Logging

The library supports logging using the Microsoft.Extensions.Logging framework. You can configure the logging provider to log messages to various outputs, such as console, file, or other logging systems.

Contributing

If you would like to contribute to this library, please feel free to submit a pull request or open an issue on the GitHub repository. Contributions are welcome and appreciated!

License

This library is licensed under the MIT License. See the LICENSE file for more details.

Contact

If you have any questions or need assistance, please feel free to reach out via the GitHub repository or contact the author directly.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows8.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.1 84 6/25/2025
2.1.0 134 6/25/2025
2.0.2 146 6/14/2025
2.0.1 204 6/13/2025
2.0.0 277 6/12/2025
1.0.37 279 6/11/2025
1.0.27 360 11/17/2023
1.0.26 118 11/17/2023
1.0.25 133 11/17/2023
1.0.24 147 11/17/2023
1.0.23 145 11/17/2023
1.0.22 342 3/21/2023
1.0.21 281 2/27/2023
1.0.20 321 1/25/2023
1.0.19 327 1/20/2023
1.0.18 306 1/20/2023
1.0.17 315 1/20/2023
1.0.16 328 1/19/2023
1.0.15 302 1/19/2023
1.0.14 306 1/18/2023
1.0.13 324 1/18/2023
1.0.12 340 1/18/2023
1.0.11 320 1/18/2023
1.0.10 327 1/18/2023
1.0.9 340 1/18/2023
1.0.8 314 1/18/2023
1.0.7 325 1/17/2023
1.0.6 324 1/17/2023
1.0.5 338 1/12/2023
1.0.4 345 1/12/2023
1.0.3 331 1/4/2023
1.0.0 327 12/21/2022