![]() |
VOOZH | about |
dotnet add package Cloudey.Reflex.Core --version 3.0.0
NuGet\Install-Package Cloudey.Reflex.Core -Version 3.0.0
<PackageReference Include="Cloudey.Reflex.Core" Version="3.0.0" />
<PackageVersion Include="Cloudey.Reflex.Core" Version="3.0.0" />Directory.Packages.props
<PackageReference Include="Cloudey.Reflex.Core" />Project file
paket add Cloudey.Reflex.Core --version 3.0.0
#r "nuget: Cloudey.Reflex.Core, 3.0.0"
#:package Cloudey.Reflex.Core@3.0.0
#addin nuget:?package=Cloudey.Reflex.Core&version=3.0.0Install as a Cake Addin
#tool nuget:?package=Cloudey.Reflex.Core&version=3.0.0Install as a Cake Tool
An opinionated framework setup for common functionality.
Install with NuGet
For a quick start, use the AddReflexCore extension method on the host builder. This will register the logging, configuration, caching, validation, Autofac, and common ASP.NET Core services.
// Program.cs
var builder = WebApplication.CreateBuilder(args);
builder.AddReflexCore();
Add the following to your .gitignore file to ignore local configuration files:
**/appsettings.Local.*
**/appsettings.*.Local.*
Reflex makes extensive use of assembly scanning to discover types. You should mark your assemblies with the IncludeAssembly attribute to ensure they are included in the scanning process.
// Anywhere in the assembly
[assembly: IncludeAssembly]
// Program.cs
var builder = WebApplication.CreateBuilder(args);
// ...
builder.AddReflexConfiguration(); // <-- Register configuration
Important: YAML files on the same level always take precedence over JSON files. It is highly recommended to use YAML files exclusively.
I.e. if you have both appsettings.json and appsettings.yaml in the same directory, the YAML file will be used.
If you have appsettings.yaml and appsettings.Development.json, the JSON file will be used in development.
Precedence - from highest to lowest:
APP__ environment variablesappsettings.{Environment}.Local.yamlappsettings.{Environment}.Local.jsonappsettings.{Environment}.yamlappsettings.{Environment}.jsonappsettings.Local.yamlappsettings.Local.jsonappsettings.yamlappsettings.jsonTo enable Sentry, configure the DSN in your application settings (preferably in a .Local.yaml file):
Sentry:
Dsn: YourSentryDsnFromSentryDashboard
Then enable logging:
// Program.cs
var builder = WebApplication.CreateBuilder(args);
// ...
builder.AddReflexLogging();
This package includes integration with Serilog and Sentry for logging.
Enable logging with:
// Program.cs
var builder = WebApplication.CreateBuilder(args);
// ...
builder.AddReflexLogging();
You can configure the logging level with the configuration key Logging.Level.
Licensed under Apache 2.0.
Copyright © 2023 Cloudey IT Ltd
Cloudey® is a registered trademark of Cloudey IT Ltd. Use of the trademark is NOT GRANTED under the license of this repository or software package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Cloudey.Reflex.Core:
| Package | Downloads |
|---|---|
|
Cloudey.Reflex.Database
Provides an opinionated setup for Entity Framework Core using a PostgreSQL database. See README for usage instructions. |
|
|
Cloudey.Reflex.GraphQL
Provides an opinionated GraphQL server setup for the Reflex framework. See README for usage instructions. |
This package is not used by any popular GitHub repositories.