Chili.Opf3 Send comments on this topic.
Md5ConcurrencyManager Class
See Also  Members   Example 
Chili.Opf3.Concurrency.Md5 Namespace : Md5ConcurrencyManager Class




Implements the MD5 concurrency manager. This class uses a Md5 check to discover if somebody else has changed the object in the meantime.

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class Md5ConcurrencyManager 
   Implements IConcurrencyManager 
Visual Basic (Usage)Copy Code
Dim instance As Md5ConcurrencyManager
C# 
public sealed class Md5ConcurrencyManager : IConcurrencyManager  
Managed Extensions for C++ 
public __gc __sealed class Md5ConcurrencyManager : public IConcurrencyManager  
C++/CLI 
public ref class Md5ConcurrencyManager sealed : public IConcurrencyManager  

Example

The following example shows the usage of the class in your application.
C#Copy Code
// ... Other code 
 
// Creates a new ObjectContext that uses an MsSql Server as storage. 
ObjectContext context = new ObjectContext(new MsSqlStorage("sa", "", "localhost", "application")); 
// Set the MD5 Concurrency Manager. The ObjectContext uses it from  
// now on to check the concurrency. 
context.ConcurrencyManager = new Md5ConcurrencyManager(); 
 
// ... Other code

Remarks

This class implements a MD5 check that is used to validate an object against the storage. It checks if somebody else changed the object in the meantime (while it has been in memory) and informs the ObjectContext whether a problem has been encountered.

Inheritance Hierarchy

System.Object
   Chili.Opf3.Concurrency.Md5.Md5ConcurrencyManager

Requirements

Namespace: Chili.Opf3.Concurrency.Md5

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Chili.Opf3 (in Chili.Opf3.dll)

See Also