BrokerService Class

Summary
Concrete implementation of the IBrokerService contract.
Syntax
C#
VB
C++
public class BrokerService : IBrokerService 
  
Public Class BrokerService  
   Implements 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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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