AdgFactory.Synchronized Method
Definition
Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll
Wraps an in a synchronized (thread-safe) wrapper.
Overloads
| Signature | Description |
|---|---|
| Synchronized(IAdgObject Synchronized(IAdgObject adgObj)) | Wraps an in a synchronized (thread-safe) wrapper. |
| Synchronized(ILibraryList Synchronized(ILibraryList llObj)) | Wraps an in a synchronized (thread-safe) wrapper. |
IAdgObject Synchronized(IAdgObject adgObj)
Wraps an in a synchronized (thread-safe) wrapper.
Remarks
This method checks the type of the parameter and wraps it in a corresponding synchronized (thread-safe) wrapper.If the object is already a synchronized object, it is returned as is.If the object is an , it is wrapped in a .If the object is an , it is wrapped in a .If the object is an , it is wrapped in a .If the object is an , it is wrapped in a .If the object is none of the above types, it is wrapped in a .
IAdgObject Synchronized(IAdgObject adgObj)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| IAdgObject | adgObj | The to wrap. |
Returns
| Type | Description |
|---|---|
| IAdgObject | A thread-safe wrapper around the . |
ILibraryList Synchronized(ILibraryList llObj)
Wraps an in a synchronized (thread-safe) wrapper.
Remarks
This method checks if the parameter is already a synchronized object. If it is, the method returns the object as is. If it’s not, the method wraps it in a to ensure thread safety.
ILibraryList Synchronized(ILibraryList llObj)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| ILibraryList | llObj | The to wrap. |
Returns
| Type | Description |
|---|---|
| ILibraryList | A thread-safe wrapper around the . |