Menu

Tree [f9e250] master /
 History

HTTPS access


File Date Author Commit
 Library 2022-06-07 Alexey Zakharov Alexey Zakharov [f9e250] MemoryCacheCleaner hosted service added
 Tests 2022-06-07 Alexey Zakharov Alexey Zakharov [7d29a6] MemoryCacheCleaner hosted service added
 habr 2022-05-23 Alexey Zakharov Alexey Zakharov [014e2b] Updates
 htdocs 2022-06-02 Alexey Zakharov Alexey Zakharov [9fa8f1] Updates; v2.1.0
 .gitattributes 2022-05-18 Alexey Zakharov Alexey Zakharov [dc4382] Updates, UnitTest
 .gitignore 2022-05-13 Alexey Zakharov Alexey Zakharov [ca64ef] Updates
 LICENSE 2022-05-13 Alexey Zakharov Alexey Zakharov [ca64ef] Updates
 readme.md 2022-05-21 Alexey Zakharov Alexey Zakharov [ae0e8e] Updates

Read Me



Net.Leksi.FullState

The library provides the standard use of the Dependency Injection mechanism in ASP.NET Core applications with persistence state between requests during the session (full state).
Allows session context services to be registered with the DI container and retrieved from the container in the normal way.
Also provides the ability to access request context services in session context service methods.

Prerequisites

  1. Target platform: .NET 6.0
  2. Target CPU: Any

Usage

var builder = WebApplication.CreateBuilder(args);

...

builder.Services.AddFullState();

// For interfaces being used as sessional or request scoped
builder.Services.AddScoped<...>();
builder.Services.AddScoped<...>();

...

var app = builder.Build();

app.UseFullState();

To obtain a sessional object is is necessary to obtain session by:

IFullState session = service.GetFullState();

on any IServiceProvider you have, then

ISomeIterface obj = session.SessionServices.GetService<ISomeIterface>();

API

See Documentation

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.