IBank RemoveAsync T  Method (GDID, Object, ISession)NFX Class Library

[This is preliminary documentation and is subject to change.]

Async version: Removes the parcel from the bank returning true if parcel was found and removed

Namespace: NFX.DataAccess.Distributed
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

Task<bool> RemoveAsync<T>(
	GDID id,
	Object shardingID = null,
	ISession session = null
)
where T : Parcel

Parameters

id
Type: NFX.DataAccess.Distributed GDID
The unique GDID of the parcel
shardingID (Optional)
Type: OnlineSystem 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.ShardingParcel
session (Optional)
Type: NFX.ApplicationModel ISession
User session, if null session will be taken from execution context. The session may be needed for policy filtering
Type Parameters

T

Return Value

Type: OnlineTask OnlineBoolean 
See Also