Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SingletonRecord.cs
2{
6 public class SingletonRecord
7 {
8 private readonly SingletonKey key;
9 private readonly bool instantiated;
10 private readonly object instance;
11
19 {
20 this.key = Key;
21 this.instantiated = Instantiated;
22 this.instance = Instance;
23 }
24
28 public SingletonKey Key => this.key;
29
33 public bool Instantiated => this.instantiated;
34
38 public object Instance => this.instance;
39 }
40}
Represents a type and a set of arguments, for which an object instance is the single instantiation.
Definition: SingletonKey.cs:10
A record of a singleton instance in memory.
bool Instantiated
If the instance was instantiated by the library (true) or externally (by caller).
SingletonRecord(SingletonKey Key, bool Instantiated, object Instance)
A record of a singleton instance in memory.