195 |
|
{Service Manager} |
196 |
|
function AllocateSPB: ISPB; |
197 |
|
function HasServiceAPI: boolean; |
198 |
< |
function GetServiceManager(ServerName: AnsiString; Protocol: TProtocol; SPB: ISPB): IServiceManager; |
198 |
> |
function GetServiceManager(ServerName: AnsiString; Protocol: TProtocol; SPB: ISPB): IServiceManager; overload; |
199 |
> |
function GetServiceManager(ServerName: AnsiString; Port: AnsiString; Protocol: TProtocol; SPB: ISPB): IServiceManager; overload; |
200 |
|
|
201 |
|
{Information} |
202 |
|
function GetStatus: IStatus; override; |
490 |
|
else |
491 |
|
Result := nil; |
492 |
|
end; |
493 |
+ |
|
494 |
+ |
function TFB25ClientAPI.GetServiceManager(ServerName: AnsiString; |
495 |
+ |
Port: AnsiString; Protocol: TProtocol; SPB: ISPB): IServiceManager; |
496 |
+ |
begin |
497 |
+ |
if HasServiceAPI then |
498 |
+ |
Result := TFB25ServiceManager.Create(ServerName,Protocol,SPB,Port) |
499 |
+ |
else |
500 |
+ |
Result := nil; |
501 |
+ |
end; |
502 |
|
|
503 |
|
function TFB25ClientAPI.StartTransaction(Attachments: array of IAttachment; |
504 |
|
TPB: array of byte; DefaultCompletion: TTransactionCompletion): ITransaction; |