Class Command<TResult>
Base class for commands.
public abstract class Command<TResult>
Type Parameters
TResultThe type of the result.
- Inheritance
-
Command<TResult>
- Derived
- Inherited Members
Methods
Render(IBsonSerializerRegistry)
Renders the command to a RenderedCommand<TResult>.
public abstract RenderedCommand<TResult> Render(IBsonSerializerRegistry serializerRegistry)
Parameters
serializerRegistryIBsonSerializerRegistryThe serializer registry.
Returns
- RenderedCommand<TResult>
Operators
implicit operator Command<TResult>(BsonDocument)
Performs an implicit conversion from BsonDocument to Command<TResult>.
public static implicit operator Command<TResult>(BsonDocument document)
Parameters
documentBsonDocumentThe document.
Returns
- Command<TResult>
The result of the conversion.
implicit operator Command<TResult>(string)
Performs an implicit conversion from string to Command<TResult>.
public static implicit operator Command<TResult>(string json)
Parameters
jsonstringThe JSON string.
Returns
- Command<TResult>
The result of the conversion.