Click or drag to resize

BatchHub Class

Provides access to the BatchHub functionality. Abstracts from the connection mode (Database, WebService) and establishes the connection to the data storage according to the configuration.
Inheritance Hierarchy
SystemObject
  PDTec.IceNet.Domain.BatchHubBatchHub

Namespace:  PDTec.IceNet.Domain.BatchHub
Assembly:  PDTec.IceNet.Domain.BatchHub (in PDTec.IceNet.Domain.BatchHub.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public class BatchHub : IDisposable

The BatchHub type exposes the following members.

Properties
  NameDescription
Public propertyService
Provides access to the BatchHub service interface IBatchHubService.
Top
Methods
  NameDescription
Public methodStatic memberCode exampleAccessService
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.
Public methodDispose
Releases all resources used by the BatchHub
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the BatchHub and optionally releases the managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples

This example shows how to use the BatchHub class to call IBatchHubService service methods.

C#
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:

XML
<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>
XML
<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>
See Also