Source/NFX/DataAccess/Distributed/StoreIntfs.cs
/// <summary>
/// Loads parcel by fetching it from the bank backened by its primary id
/// </summary>
/// <param name="id">The unique GDID of the parcel</param>
/// <param name="shardingID">
/// The ID of the entity used for sharding,
/// i.e. a message may use ID of the item that the message relates to, so messages get sharded in the same location as their "parent" record.
/// The parcel type T specifies the DataParcelAttirbute.GetParcelAttr(typeof(T)).ShardingParcel
/// </param>
/// <param name="veracity">The level of data veracity</param>
/// <param name="cacheOpt">The cache control options</param>
/// <param name="cacheMaxAgeSec">The maximum acceptable age of cached instance, cached data will be re-queried from backend if it is older</param>
/// <param name="session">User session, if null session will be taken from execution context. The session may be needed for policy filtering</param>
Loads parcel by fetching it from the bank backened by its primary id
Loads parcel by fetching it from the bank backened by its primary id
T Load<T>(GDID id,
                      object shardingID = null,
                      DataVeracity veracity = DataVeracity.Maximum,
                      DataCaching cacheOpt = DataCaching.LatestData,
                      int? cacheMaxAgeSec = null,
                      ISession session = null) where T : Parcel;
T Load < T > ( GDID id , object shardingID = null , DataVeracity veracity = DataVeracity . Maximum , DataCaching cacheOpt = DataCaching . LatestData , int ? cacheMaxAgeSec = null , ISession session = null ) where T : Parcel ;
Loads parcel by fetching it from the bank backened by its primary id
Loads parcel by fetching it from the bank backened by its primary id
id
GDID
The unique GDID of the parcel
The unique GDID of the parcel
shardingID
object
The ID of the entity used for sharding,
i.e. a message may use ID of the item that the message relates to, so messages get sharded in the same location as their "parent" record.
The parcel type T specifies the DataParcelAttirbute.GetParcelAttr(typeof(T)).ShardingParcel
The ID of the entity used for sharding i . e . a message may use ID of the item that the message relates to so messages get sharded in the same location as their " parent " record . The parcel type T specifies the DataParcelAttirbute . GetParcelAttr ( typeof ( T )) . ShardingParcel
veracity
DataVeracity
The level of data veracity
The level of data veracity
cacheOpt
DataCaching
The cache control options
The cache control options
cacheMaxAgeSec
int?
The maximum acceptable age of cached instance, cached data will be re-queried from backend if it is older
The maximum acceptable age of cached instance cached data will be re - queried from backend if it is older
session
ISession
User session, if null session will be taken from execution context. The session may be needed for policy filtering
User session if null session will be taken from execution context . The session may be needed for policy filtering