BatchHub Class |
Namespace: PDTec.IceNet.Domain.BatchHub
public class BatchHub : IDisposable
The BatchHub type exposes the following members.
Name | Description | |
---|---|---|
Service |
Provides access to the BatchHub service interface IBatchHubService.
|
Name | Description | |
---|---|---|
AccessService |
Provides access to the BatchHub functionality and defines the access scope.
Abstracts from the connection mode (Database, WebService) and establishes the
connection to the data storage according to the configuration.
| |
Dispose | Releases all resources used by the BatchHub | |
Dispose(Boolean) | Releases the unmanaged resources used by the BatchHub and optionally releases the managed resources | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This example shows how to use the BatchHub class to call IBatchHubService service methods.
using (var batchHub = BatchHub.AccessService()) { string jobId; ServiceResult sr = batchHub.Service.BatchJobCreate( Arguments.QueueName, Arguments.Description, Arguments.Priority, Arguments.SubmittedBy, aProperties, null, false, out jobId); if (!sr.Success) { throw new ApplicationException("Service call failed: " + sr.ErrorMessage); } }
To access the BatchHub service, one of the following configuration settings must be present:
<configuration> <ice.net> <components> <batchhub mode="Database"> <database service="SQLServer" connectionString="server=(local)\SQLEXPRESS;trusted_connection=yes;database=ice60q" encrypted="false"/> </batchhub> </components> </ice.net> </configuration>
<configuration> <ice.net> <components> <batchhub mode="WebService"> <webService url="http://stuttgart.pdtec.lan/batchhub60/batchhub.asmx"> <authentication mode="AES" key="3A4DE34DF05B889E1C67121218854F8B3A4DE34DF05B889E1C67121218854F8B" /> </webService> </batchhub> </components> </ice.net> </configuration>