Concrete implementation of the IBrokerService contract.
As a pre-requisite, you will need to setup a data access agent and register it before you can use the broker service. The following example shows how to register it with a sample connection string:
IWorklistDataAccessAgent agent;
string connectionString = "Data Source=worklist_db;Initial Catalog=LeadWorklist;Integrated Security=True";
string provider = "System.Data.SqlClient";
if (provider == DataAccessMapping.DefaultSqlProviderName)
{
agent = new WorklistSqlDbDataAccessAgent(connectionString);
DataAccessServices.RegisterDataAccessService<IWorklistDataAccessAgent>(agent);
}
else if (provider == DataAccessMapping.DefaultSqlCe3_5ProviderName)
{
agent = new WorklistSqlCeDataAccessAgent(connectionString);
DataAccessServices.RegisterDataAccessService<IWorklistDataAccessAgent>(agent);
}
else
{
throw new NotImplementedException();
}