Differences

This shows you the differences between the selected revisions of the page.

2011-12-29 2011-12-29
sessionfailed is event (martin) batch methods always returns OperationResultBase (martin)
Line 62: Line 62:
Methods for atomic operations throw ''[[library_sessionexception|SessionException]]'' on error. Methods for atomic operations throw ''[[library_sessionexception|SessionException]]'' on error.
-Methods for batch operations usually returns an instance of descendant of ''[[library_operationresultbase|OperationResultBase]]'' class (such as ''[[library_operationresult|OperationResult<T>]]'' or ''[[library_synchronizationresult|SynchronizationResult]]''). Such result class stores list of operations performed (e.g. ''OperationResult<T>.Operations'' or ''SynchronizationResult.Uploads''), and list of failures (''OperationResultBase.Failures'').+Methods for batch operations returns an instance of descendant of ''[[library_operationresultbase|OperationResultBase]]'' class (such as ''[[library_operationresult|OperationResult<T>]]'' or ''[[library_synchronizationresult|SynchronizationResult]]''). Such result class stores list of operations performed (e.g. ''OperationResult<T>.Operations'' or ''SynchronizationResult.Uploads''), and list of failures (''OperationResultBase.Failures'').
Every structure representing operation performed may refer (e.g. ''TransferArgs.Error'') to one of the failures, if the failure can be explicitly associated with the operation. So often the same failure (represented by ''[[library_sessionexception|SessionException]]'') will be referenced twice in the results. Every structure representing operation performed may refer (e.g. ''TransferArgs.Error'') to one of the failures, if the failure can be explicitly associated with the operation. So often the same failure (represented by ''[[library_sessionexception|SessionException]]'') will be referenced twice in the results.

Last modified: by martin