Servient.create constructor
Servient.create({
- List<
ProtocolClientFactory> ? clientFactories, - ServerSecurityCallback? serverSecurityCallback,
- ContentSerdes? contentSerdes,
Creates a new Servient.
The Servient can be pre-configured with a List of clientFactories
.
However, it is also possible to dynamically addClientFactorys and
removeClientFactorys at runtime.
If you want to support a custom media type not already included in the
ContentSerdes class, a custom contentSerdes
object can be passed as an
argument.
Implementation
factory Servient.create({
List<ProtocolClientFactory>? clientFactories,
ServerSecurityCallback? serverSecurityCallback,
ContentSerdes? contentSerdes,
}) {
return InternalServient(
clientFactories: clientFactories,
serverSecurityCallback: serverSecurityCallback,
contentSerdes: contentSerdes,
);
}