C-DEngine 5.105

TheThing..::..RestartUpdateHistory<(Of <(<'T>)>)> Method (Guid, TheHistoryParameters, TheStorageMirror<(Of <(<'T>)>)>)

Restarts history retrieval from the point when ClearUpdateHistory was last called. Call this when complete history is required, and a failure during processing requires a retry. For durable history tokens, call this after a restart.

Namespace:  nsCDEngine.Engines.ThingService
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public bool RestartUpdateHistory<T>(
	Guid historyToken,
	TheHistoryParameters historyParameters,
	TheStorageMirror<T> store
)
where T : TheDataBase, INotifyPropertyChanged
Public Function RestartUpdateHistory(Of T As {TheDataBase, INotifyPropertyChanged}) ( _
	historyToken As Guid, _
	historyParameters As TheHistoryParameters, _
	store As TheStorageMirror(Of T) _
) As Boolean
public:
generic<typename T>
where T : TheDataBase, INotifyPropertyChanged
bool^ RestartUpdateHistory(
	Guid^ historyToken, 
	TheHistoryParameters^ historyParameters, 
	TheStorageMirror<T>^ store
)

Type Parameters

T

Parameters

historyToken
Type: Guid
The token returned by RegisterForUpdateHistory.
historyParameters
Type: nsCDEngine.Engines.ThingService..::..TheHistoryParameters
History parameters expected to be returned. If the parameters can not be satisfied with existing history, the token is invalidated (and the method returns false)
store
Type: nsCDEngine.Engines.StorageService..::..TheStorageMirror<(Of <(<'T>)>)>
Storage Mirror to place the history items into.

Return Value

true if the history token was valid and has been restarted. false if the token was invalid or the historyParameters were incompatible with existing history data.