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 CasCap.Common.Services --version 4.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CasCap.Common.Services, 4.11.0"
#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.
#:package CasCap.Common.Services@4.11.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
Feature-flag background service launcher and configuration abstractions.
Installation
dotnet add package CasCap.Common.Services
Purpose
Contains FeatureFlagBgService, a BackgroundService that inspects the configured FeatureFlagConfig.EnabledFeatures set at startup and launches the matching IBgFeature implementations registered in the DI container. The AddFeatureFlagService() extension wires everything up.
The older generic FeatureFlagBgService<T> (bitwise enum-based) is retained but marked [Obsolete].
Target frameworks:net8.0, net9.0, net10.0
Services
Type
Description
FeatureFlagBgService
BackgroundService that resolves and executes IBgFeature implementations whose FeatureName is present in the configured FeatureFlagConfig.EnabledFeatures set (or IBgFeature.AlwaysEnabled)
FeatureFlagBgService<T>
[Obsolete] Generic predecessor that used a bitwise enum via IFeature<T>.FeatureType
GitMetadataBgService
Background service that periodically logs git build metadata (repository, tag, branch, commit) from environment variables to aid debugging
Registers FeatureFlagBgService and configures FeatureFlagConfig from a set of enabled feature name strings. Optionally registers GitMetadataBgService when addGitMetadataService=true
[Obsolete] Bridge overload that converts a flags enum to a HashSet<string> and delegates to the non-generic overload
Models
Type
Description
GitMetadata
Build metadata record from the CI/CD pipeline — properties bind to environment variables injected by GitHub Actions and Helm deployments (repository, branch, commit, tag, workflow name, run ID, run number)
Configuration
Type
Description
FeatureFlagConfig
Configuration class carrying the EnabledFeatures string set — configured via IOptions<FeatureFlagConfig>
FeatureConfig<T>
[Obsolete] Record carrying the EnabledFeatures flags — bound from configuration via IOptions<FeatureConfig<T>>
VersionsCompatible and additional computed target framework versions.
.NET
net8.0net8.0 is compatible. net8.0-androidnet8.0-android was computed. net8.0-browsernet8.0-browser was computed. net8.0-iosnet8.0-ios was computed. net8.0-maccatalystnet8.0-maccatalyst was computed. net8.0-macosnet8.0-macos was computed. net8.0-tvosnet8.0-tvos was computed. net8.0-windowsnet8.0-windows was computed. net9.0net9.0 is compatible. net9.0-androidnet9.0-android was computed. net9.0-browsernet9.0-browser was computed. net9.0-iosnet9.0-ios was computed. net9.0-maccatalystnet9.0-maccatalyst was computed. net9.0-macosnet9.0-macos was computed. net9.0-tvosnet9.0-tvos was computed. net9.0-windowsnet9.0-windows was computed. net10.0net10.0 is compatible. net10.0-androidnet10.0-android was computed. net10.0-browsernet10.0-browser was computed. net10.0-iosnet10.0-ios was computed. net10.0-maccatalystnet10.0-maccatalyst was computed. net10.0-macosnet10.0-macos was computed. net10.0-tvosnet10.0-tvos was computed. net10.0-windowsnet10.0-windows was computed.
Typed .NET client for the signal-cli REST API with REST polling and JSON-RPC WebSocket transports, webhook endpoints, health checks, and INotifier integration.
GitHub repositories
This package is not used by any popular GitHub repositories.