メインコンテンツまでスキップ

MagicOnionOptions

MagicOnionOptions can pass to MagicOnionEngine.BuildServerServiceDefinition(MagicOnionOptions option).

PropertyDescription
IList<MagicOnionFilterDescriptor> GlobalFiltersGlobal MagicOnion filters.
bool EnableCurrentContextEnable ServiceContext.Current option by AsyncLocal, default is false.
IList<StreamingHubFilterDescriptor> Global StreamingHub filters.GlobalStreamingHubFilters
IGroupRepositoryFactory DefaultGroupRepositoryFactoryDefault GroupRepository factory for StreamingHub, default is ``.
bool IsReturnExceptionStackTraceInErrorDetailIf true, MagicOnion handles exception ownself and send to message. If false, propagate to gRPC engine. Default is false.
MessagePackSerializerOptions SerializerOptionsMessagePack serialization resolver. Default is used ambient default(MessagePackSerializer.DefaultOptions).