Table of Contents

Class ModulePackage

Namespace
Scaleout.Modules.Hosting
Assembly
Scaleout.Modules.Hosting.dll

Allows modules to be added to a ScaleOut Active Caching package during startup.

public class ModulePackage
Inheritance
ModulePackage
Inherited Members

Remarks

Use AddApiModule<TSossObject, TApiProcessor>(string, ApiModuleOptions<TSossObject>?) and/or AddMsgModule<TSossObject, TMessageProcessor>(string, MessageModuleOptions<TSossObject>?)"/> in your package's Startup.cs file to add API and/or message processing modules to your package.

Constructors

ModulePackage(GridConnection, IServiceProvider, IConfiguration, ILoggerFactory?, MetricsManager)

public ModulePackage(GridConnection gridConnection, IServiceProvider serviceProvider, IConfiguration configuration, ILoggerFactory? loggerFactory, MetricsManager metricsManager)

Parameters

gridConnection GridConnection
serviceProvider IServiceProvider
configuration IConfiguration
loggerFactory ILoggerFactory
metricsManager MetricsManager

Methods

AddApiModule<TSossObject, TApiProcessor>(string, ApiModuleOptions<TSossObject>?)

public void AddApiModule<TSossObject, TApiProcessor>(string moduleName, ApiModuleOptions<TSossObject>? options = null) where TApiProcessor : ApiProcessor<TSossObject>

Parameters

moduleName string
options ApiModuleOptions<TSossObject>

Type Parameters

TSossObject
TApiProcessor

AddMsgModule<TSossObject, TMessageProcessor>(string, MessageModuleOptions<TSossObject>?)

public void AddMsgModule<TSossObject, TMessageProcessor>(string moduleName, MessageModuleOptions<TSossObject>? options = null) where TMessageProcessor : MessageProcessor<TSossObject>

Parameters

moduleName string
options MessageModuleOptions<TSossObject>

Type Parameters

TSossObject
TMessageProcessor

GetSossObjectPropertyInfo<TSossObject>()

public static Dictionary<string, string> GetSossObjectPropertyInfo<TSossObject>()

Returns

Dictionary<string, string>

Type Parameters

TSossObject