Class ApiModuleOptions<TSossObject>
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
IsJsonSerializer
Gets a value indicating whether the serializer performs JSON serialization.
public bool IsJsonSerializer { get; }
Property Value
Serializer
Serializer for the module's objects in the ScaleOut service. Defaults to System.Text.Json serialization.
public Action<TSossObject, Stream> Serializer { get; }