←Select platform

BrokerService Class

Summary

Concrete implementation of the IBrokerService contract.

Syntax

C#
VB
C++
public class BrokerService : IBrokerService 
  
Public Class BrokerService  
   Implements Leadtools.Medical.Worklist.Wcf.Service.IBrokerService  
public ref class BrokerService : public Leadtools.Medical.Worklist.Wcf.Service.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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Worklist.Wcf Assembly