ServiceCollectionExtensions Class

Namespace
Shiny
Base Types
  • object
graph BT Type-->Base0["object"] Type["ServiceCollectionExtensions"] class Type type-node

Syntax

public static class ServiceCollectionExtensions

Methods

Name Value Summary
UseJsonNetSerialization(IServiceCollection) void
static
UseLiteDbCache(IServiceCollection) void
static
UseLiteDbSettings(IServiceCollection) void
static
UseLiteDbStorage(IServiceCollection) void
static
UseMemoryCache(IServiceCollection, TimeSpan?, TimeSpan?) void
Adds an injectable (ICache) in-memory cache
static
UseRepositoryCache(IServiceCollection, TimeSpan?, TimeSpan?) void
Uses the built-in repository (default is file based) to store cache data
static
UseSqliteCache(IServiceCollection) void
static
UseSqliteLogging(IServiceCollection, bool, bool) void
WARNING: this will not catch startup issues as the connection isn't ready until after startup - it will catch all delegates though
static
UseSqliteSettings(IServiceCollection) void
static
UseSqliteStorage(IServiceCollection) void
static
UseSystemTextJsonSerialization(IServiceCollection) void
static
UseVoidCache(IServiceCollection) void
Adds an injectable (ICache) cache service that doesn't actually cache at all - good for testing
static

Extension Methods

Name Value Summary
ReflectGet(string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectSet(string, object) void
Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
GitHub