Table of Contents

Class ServiceCollectionExtensions

Namespace
Bluetooth.Core.Scanning
Assembly
Bluetooth.Core.Scanning.dll

Extension methods for registering Bluetooth services in a service collection.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddBluetoothCoreScanningServices(IServiceCollection)

Adds Bluetooth scanner and broadcaster services to the service collection. Registers all core Bluetooth services including the adapter, scanner, broadcaster, and characteristic access services as singletons.

public static void AddBluetoothCoreScanningServices(this IServiceCollection services)

Parameters

services IServiceCollection

The service collection to add services to.

AddBluetoothSigProfiles(IServiceCollection)

Adds Bluetooth SIG service definitions to the service definition registry pipeline.

Registers the following Bluetooth SIG standard services: Battery Service (0x180F), Device Information (0x180A), Generic Access (0x1800), Generic Attribute (0x1801), Heart Rate (0x180D), Health Thermometer (0x1809), and Environmental Sensing (0x181A).

public static IServiceCollection AddBluetoothSigProfiles(this IServiceCollection services)

Parameters

services IServiceCollection

The service collection to add services to.

Returns

IServiceCollection

The updated service collection for method chaining.