Photon Server API Documentation
v5.0RC1
The property bag. More...
Public Member Functions | |
| PropertyBag () | |
| Initializes a new instance of the PropertyBag<TKey> class. More... | |
| PropertyBag (IEnumerable< KeyValuePair< TKey, object >> values) | |
| Initializes a new instance of the PropertyBag<TKey> class. More... | |
| PropertyBag (IDictionary values) | |
| Initializes a new instance of the PropertyBag<TKey> class. More... | |
| IDictionary< TKey, Property< TKey > > | AsDictionary () |
| IList< Property< TKey > > | GetAll () |
| The get all. More... | |
| Hashtable | GetProperties () |
| Get all properties. More... | |
| Hashtable | GetProperties (IList< TKey > propertyKeys) |
| The get properties. More... | |
| Hashtable | GetProperties (IEnumerable< TKey > propertyKeys) |
| The get properties. More... | |
| Hashtable | GetProperties (IEnumerable propertyKeys) |
| The get properties. More... | |
| Property< TKey > | GetProperty (TKey key) |
| The get property. More... | |
| bool | SetProperty (TKey key, object value) |
| bool | SetProperty (TKey key, object value, KeyValuePair< int, int >? keyValueSizes) |
| tries to set property and returns whether it was changed More... | |
| void | Set (TKey key, object value) |
| void | Set (TKey key, object value, KeyValuePair< int, int >? keyValueSizes) |
| tries to set property More... | |
| void | SetProperties (IDictionary values) |
| The set properties. More... | |
| void | SetProperties (IDictionary values, out bool changed) |
| void | SetProperties (IDictionary values, out bool changed, Dictionary< object, KeyValuePair< int, int >> metaData) |
| bool | SetPropertiesCAS (IDictionary values, IDictionary expectedValues, out string debugMessage) |
| The set properties. More... | |
| bool | CompareProperties (IDictionary expectedValues, out string debugMessage) |
| bool | SetPropertiesCAS (IDictionary values, IDictionary expectedValues, ref bool valuesChanged, out string debugMessage) |
| bool | SetPropertiesCAS (IDictionary values, IDictionary expectedValues, ref bool valuesChanged, out string debugMessage, Dictionary< object, KeyValuePair< int, int >> metaData) |
| The set properties. More... | |
| void | SetProperties (IDictionary< TKey, object > values) |
| The set properties. More... | |
| void | SetProperties (IDictionary< TKey, object > values, out bool changed) |
| bool | SetPropertiesCAS (IDictionary< TKey, object > values, IDictionary< TKey, object > expectedValues, out string debugMessage) |
| The set properties. More... | |
| bool | TryGetValue (TKey key, out object value) |
| void | Clear () |
Public Attributes | |
| int | Count => this.dictionary.Count |
| Gets the number of properties in this instance. More... | |
Properties | |
| bool | DeleteNullProps [get, set] |
| int | TotalSize [get] |
Events | |
| EventHandler< PropertyChangedEventArgs< TKey > > | PropertyChanged |
| The property changed event. More... | |
The property bag.
| TKey | The property key type |
|
inline |
Initializes a new instance of the PropertyBag<TKey> class.
|
inline |
Initializes a new instance of the PropertyBag<TKey> class.
| values | The values. |
|
inline |
Initializes a new instance of the PropertyBag<TKey> class.
| values | The values. |
|
inline |
|
inline |
|
inline |
|
inline |
The get all.
|
inline |
Get all properties.
|
inline |
The get properties.
| propertyKeys | The property keys. |
|
inline |
The get properties.
| propertyKeys | The property keys. |
|
inline |
The get properties.
| propertyKeys | The property keys. |
|
inline |
The get property.
| key | The key. |
|
inline |
|
inline |
tries to set property
| key | |
| value | |
| keyValueSizes |
|
inline |
The set properties.
| values | The values. |
|
inline |
|
inline |
|
inline |
The set properties.
| values | The values. |
|
inline |
|
inline |
The set properties.
| values | The values. |
| expectedValues | The expected values for properties in order to apply CAS. |
| debugMessage |
|
inline |
|
inline |
The set properties.
| values | The values. |
| expectedValues | The expected values for properties in order to apply CAS. |
| valuesChanged | informs whether values were really changed |
| debugMessage | |
| metaData |
|
inline |
The set properties.
| values | The values. |
| expectedValues | expected values for properties, which we are going to change |
| debugMessage |
|
inline |
|
inline |
tries to set property and returns whether it was changed
| key | The key. |
| value | The value. |
| keyValueSizes |
|
inline |
| int Photon.Hive.Plugin.PropertyBag< TKey >.Count => this.dictionary.Count |
Gets the number of properties in this instance.
|
getset |
|
get |
| EventHandler<PropertyChangedEventArgs<TKey> > Photon.Hive.Plugin.PropertyBag< TKey >.PropertyChanged |
The property changed event.