BrokerService Class

Summary
Concrete implementation of the IBrokerService contract.
Syntax
C#
C++/CLI
public class BrokerService : IBrokerService 
public ref class BrokerService : public IBrokerService   
Remarks

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(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Worklist.Wcf Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.