Class ConnectionPool
A pool of multiple connections using the same credentials and the same database
Inheritance
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public class ConnectionPool : IAsyncConnection, IConnection, IDisposable
Remarks
Because Aras uses Session State on the server, requests sent in parallel are still processed serially. The only way to overcome this is to have separate connections. This class allows you to support that transparently by wrapping any connection with a pool
Properties
| Improve this Doc View SourceAmlContext
AML context used for creating AML objects and formatting AML statements
Declaration
public ElementFactory AmlContext { get; }
Property Value
| Type | Description |
|---|---|
| ElementFactory |
Implements
| Improve this Doc View SourceDatabase
Name of the connected database
Declaration
public string Database { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Implements
| Improve this Doc View SourceUserId
ID of the authenticated user
Declaration
public string UserId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Implements
Methods
| Improve this Doc View SourceCreate(IRemoteConnection, Int32)
Creates a connection pool with size connections.
Declaration
public static IPromise<ConnectionPool> Create(IRemoteConnection conn, int size)
Parameters
| Type | Name | Description |
|---|---|---|
| IRemoteConnection | conn | The connection to use as the basis. |
| System.Int32 | size | The number of connections. |
Returns
| Type | Description |
|---|---|
| IPromise<ConnectionPool> | A promise to return a pool logged-in of |
CreateUploadCommand()
Creates an upload request used for uploading files to the server
Declaration
public UploadCommand CreateUploadCommand()
Returns
| Type | Description |
|---|---|
| UploadCommand | A new upload request used for uploading files to the server |
Implements
| Improve this Doc View SourceDispose()
Logs out of each connection
Declaration
public void Dispose()
Implements
MapClientUrl(String)
Expands a relative URL to a full URL
Declaration
public string MapClientUrl(string relativeUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | relativeUrl | The relative URL |
Returns
| Type | Description |
|---|---|
| System.String | A full URL relative to the connection |
Implements
| Improve this Doc View SourceProcess(Command)
Calls a SOAP action asynchronously
Declaration
public Stream Process(Command request)
Parameters
| Type | Name | Description |
|---|---|---|
| Command | request | Request AML and possibly files UploadCommand |
Returns
| Type | Description |
|---|---|
| System.IO.Stream | An XML SOAP response as a string |
Implements
| Improve this Doc View SourceProcess(Command, Boolean)
Calls a SOAP action asynchronously
Declaration
public IPromise<Stream> Process(Command request, bool async)
Parameters
| Type | Name | Description |
|---|---|---|
| Command | request | Request AML and possibly files UploadCommand |
| System.Boolean | async | Whether to perform this action asynchronously |
Returns
| Type | Description |
|---|---|
| IPromise<System.IO.Stream> | A promise to return an XML SOAP response as a string |