BagService

A service that provides property bag data.

Namespace:
Inetdev.Multitenancy
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
No
Inherits from:
System.Object

Constructors

BagService

Default constructor

Signature:
public Void BagService()

Properties

ItemDataServices

Item data services.

Signature:
public PropertyBagItemDataServices ItemDataServices { get; set; }

Methods

GetBagAsync

Gets a property bag of bagType.

Signature:
public Task<Object> GetBagAsync(bagType, partitionKey)
Returns

A property bag object fully loaded from the underlaying repository.

Parameters
Name Type Summary
bagType Type Type of the property bag to retrive.
partitionKey Int32 Tenant Id.
Exceptions
Type Summary
ArgumentNullException Thrown when bagType is null.
InvalidOperationException Thrown when the type bagType is not a property bag object.

GetBagAsync

Gets a property bag of type .

Signature:
public Task GetBagAsync<T>(partitionKey)
Returns

A property bag object fully loaded from the underlaying repository.

Parameters
Name Type Summary
partitionKey Int32 Tenant Id.
Exceptions
Type Summary
InvalidOperationException Thrown when the type is not a property bag object.

SaveBagAsync

Saves the property bag items of the specified object.

Signature:
public Task SaveBagAsync(partitionKey, data)
Parameters
Name Type Summary
partitionKey Int32 Tenant Id.
data Object A property bag object.
Exceptions
Type Summary
ArgumentNullException Thrown when data is null.