VOOZH about

URL: https://www.nuget.org/packages/Cloudey.Reflex.Core/

⇱ NuGet Gallery | Cloudey.Reflex.Core 3.0.0




Cloudey.Reflex.Core 3.0.0

Prefix Reserved
dotnet add package Cloudey.Reflex.Core --version 3.0.0
 
 
NuGet\Install-Package Cloudey.Reflex.Core -Version 3.0.0
 
 
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="Cloudey.Reflex.Core" Version="3.0.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cloudey.Reflex.Core" Version="3.0.0" />
 
Directory.Packages.props
<PackageReference Include="Cloudey.Reflex.Core" />
 
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 Cloudey.Reflex.Core --version 3.0.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cloudey.Reflex.Core, 3.0.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 Cloudey.Reflex.Core@3.0.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.
#addin nuget:?package=Cloudey.Reflex.Core&version=3.0.0
 
Install as a Cake Addin
#tool nuget:?package=Cloudey.Reflex.Core&version=3.0.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Reflex

Core


An opinionated framework setup for common functionality.

Installation

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();
Git

Add the following to your .gitignore file to ignore local configuration files:

**/appsettings.Local.*
**/appsettings.*.Local.*

Including assemblies

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]

Configuration

Usage
// Program.cs

var builder = WebApplication.CreateBuilder(args);
// ...
builder.AddReflexConfiguration(); // <-- Register configuration
Configuration files

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 variables
  • appsettings.{Environment}.Local.yaml
  • appsettings.{Environment}.Local.json
  • appsettings.{Environment}.yaml
  • appsettings.{Environment}.json
  • appsettings.Local.yaml
  • appsettings.Local.json
  • appsettings.yaml
  • appsettings.json

Sentry

To 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();

Logging

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.

Made by

Cloudey

License

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 297 12/28/2024
2.0.0 313 4/19/2024
1.2.0-preview.1 244 7/16/2023
1.0.4 339 7/29/2023
1.0.3 330 6/19/2023
1.0.2 362 5/15/2023
1.0.1 398 4/23/2023
1.0.0 442 4/23/2023