Class ScopeWrapper
Represents a wrapped object that can be used where an IMongoScope is expected (the wrapped object is expected to serialize properly).
[BsonSerializer(typeof(ScopeWrapper.Serializer))]
public class ScopeWrapper : BaseWrapper, IMongoScope
- Inheritance
-
ScopeWrapper
- Implements
- Inherited Members
- Extension Methods
Constructors
ScopeWrapper(object)
Initializes a new instance of the ScopeWrapper class.
public ScopeWrapper(object scope)
Parameters
scope
objectThe wrapped object.
Methods
Create(object)
Creates a new instance of the ScopeWrapper class.
public static ScopeWrapper Create(object scope)
Parameters
scope
objectThe wrapped object.
Returns
- ScopeWrapper
A new instance of ScopeWrapper or null.