Table of Contents

Class ApiModuleOptions<TSossObject>

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

Options for configuring an API module. Built using ApiModuleOptionsBuilder<TSossObject>, supplied when registering the module with AddApiModule<TSossObject, TApiProcessor>(string, ApiModuleOptions<TSossObject>?).

public class ApiModuleOptions<TSossObject>

Type Parameters

TSossObject

Type of SOSS object associated with the module.

Inheritance
ApiModuleOptions<TSossObject>
Inherited Members

Properties

Deserializer

Deserializer for the module's objects in the ScaleOut service. Defaults to System.Text.Json serialization.

public Func<Stream, TSossObject> Deserializer { get; }

Property Value

Func<Stream, TSossObject>

IsJsonSerializer

Gets a value indicating whether the serializer performs JSON serialization.

public bool IsJsonSerializer { get; }

Property Value

bool

Serializer

Serializer for the module's objects in the ScaleOut service. Defaults to System.Text.Json serialization.

public Action<TSossObject, Stream> Serializer { get; }

Property Value

Action<TSossObject, Stream>