Class GenericProperty<T>
A generic typed property
Inheritance
GenericProperty<T>
Inherited Members
Namespace:FubarDev.WebDavServer.Props.Generic
Assembly:FubarDev.WebDavServer.dll
Syntax
public class GenericProperty<T> : SimpleConvertingProperty<T>, ITypedWriteableProperty<T>, ITypedReadableProperty<T>, IUntypedWriteableProperty, IUntypedReadableProperty, IProperty
Type Parameters
Name | Description |
---|---|
T | The underlying property value type |
Constructors
| Improve this Doc View SourceGenericProperty(XName, String, Int32, IPropertyConverter<T>, GetPropertyValueAsyncDelegate<T>, SetPropertyValueAsyncDelegate<T>, XName[])
Initializes a new instance of the GenericProperty<T> class.
Declaration
public GenericProperty([NotNull] XName name, [CanBeNull] string language, int cost, [NotNull] IPropertyConverter<T> converter, GetPropertyValueAsyncDelegate<T> getValueAsyncFunc, SetPropertyValueAsyncDelegate<T> setValueAsyncFunc, params XName[] alternativeNames)
Parameters
Type | Name | Description |
---|---|---|
XName | name | The property name |
String | language | The language for the property value |
Int32 | cost | The cost to query the properties value |
IPropertyConverter<T> | converter | The converter to convert to/from the underlying property value |
GetPropertyValueAsyncDelegate<T> | getValueAsyncFunc | The function to get the property value |
SetPropertyValueAsyncDelegate<T> | setValueAsyncFunc | The function to set the property value |
XName[] | alternativeNames | Alternative property names |
Methods
| Improve this Doc View SourceGetValueAsync(CancellationToken)
Declaration
public override Task<T> GetValueAsync(CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | ct |
Returns
Type | Description |
---|---|
Task<T> |
Overrides
FubarDev.WebDavServer.Props.SimpleTypedProperty<T>.GetValueAsync(System.Threading.CancellationToken)
|
Improve this Doc
View Source
SetValueAsync(T, CancellationToken)
Declaration
public override Task SetValueAsync(T value, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
T | value | |
CancellationToken | ct |
Returns
Type | Description |
---|---|
Task |
Overrides
FubarDev.WebDavServer.Props.SimpleTypedProperty<T>.SetValueAsync(T, System.Threading.CancellationToken)