BatchHubAccessService Method |
Namespace: PDTec.IceNet.Domain.BatchHub
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>