A service that provides property bag data.
Default constructor
public Void BagService()
Item data services.
public PropertyBagItemDataServices ItemDataServices { get; set; }
Gets a property bag of bagType.
public Task<Object> GetBagAsync(bagType, partitionKey)
A property bag object fully loaded from the underlaying repository.
Name | Type | Summary |
---|---|---|
bagType | Type | Type of the property bag to retrive. |
partitionKey | Int32 | Tenant Id. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when bagType is null. |
InvalidOperationException | Thrown when the type bagType is not a property bag object. |
Gets a property bag of type
public Task GetBagAsync<T>(partitionKey)
A property bag object fully loaded from the underlaying repository.
Name | Type | Summary |
---|---|---|
partitionKey | Int32 | Tenant Id. |
Type | Summary |
---|---|
InvalidOperationException | Thrown when the type |
Saves the property bag items of the specified object.
public Task SaveBagAsync(partitionKey, data)
Name | Type | Summary |
---|---|---|
partitionKey | Int32 | Tenant Id. |
data | Object | A property bag object. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when data is null. |
In this document