Class BsonSerializationContext
This is used when you send views to some client. Client is necesary to bind to him controllers and to get right value for params PropertyName(Player player). RelatedControllers are used for caching system, so when you cache some view it will be known which exact controllers you should package too (otherwise you could get cached value that refers not-existed at your side controllers).
Inheritance
System.Object
BsonSerializationContext
Namespace: Eco.Shared.Serialization
Assembly: Eco.Shared.dll
Syntax
public sealed class BsonSerializationContext : ValueType
Fields
Client
Declaration
public INetClient Client
Field Value
Type | Description |
---|---|
INetClient |
RelatedControllers
Declaration
public HashSet<int> RelatedControllers
Field Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.Int32> |