Constructor ObsModel
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
ObsModel(ObsModelOptions?, ILoggerFactory?)
public ObsModel(ObsModelOptions? options = null, ILoggerFactory? loggerFactory = null)
Parameters
optionsObsModelOptionsThe settings, or null for the defaults.
loggerFactoryILoggerFactoryThe logger factory, or null to log nothing.
ObsModel(ObsClient, ObsModelOptions?, ILogger<ObsModel>?)
Creates an ObsModel on an ObsClient that you have made. The client has to be disconnected, and it can have only one ObsModel. You remain the owner of the client: disposing of the ObsModel disconnects it, and does not dispose of it.
public ObsModel(ObsClient client, ObsModelOptions? options = null, ILogger<ObsModel>? logger = null)
Parameters
clientObsClientThe client.
optionsObsModelOptionsThe settings, or null for the defaults.
loggerILogger<ObsModel>The logger, or null to log nothing.
Exceptions
- ArgumentNullException
clientis null.- InvalidOperationException
The client is connected or connecting, or has an ObsModel already.