ShinyHost Class

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

Syntax

public abstract class ShinyHost

Properties

Name Value Summary
Container IServiceProvider
static
Services IServiceCollection
The configured service collection post container set
static
ValidateScopes bool
Setting this before calling build will force the internal service builder to validate scopes of DI registrations (THIS IS SLOW - USE IT FOR DEBUGGING)
static

Methods

Name Value Summary
AddPostBuildAction(Action<IServiceProvider>) void
static
InitPlatform(IShinyStartup, Action<IServiceCollection>) void
static
Populate(Action<Type, Func<object>, ServiceLifetime>) void
Feeds another service container
static
Resolve<T>() T
Resolve a specified service from the container
static
ResolveAll<T>() IEnumerable<T>
Resolve a list of registered services from the container
static

Extension Methods

Name Value Summary
GetPropertyInfo<ShinyHost, TRet>(Expression<Func<ShinyHost, TRet>>) PropertyInfo
Reflects out property information based on the expression value
ReflectGet(string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectGet<ShinyHost, TReturn>(Expression<Func<ShinyHost, TReturn>>) TReturn
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