PartnerDirectory Event
Fired before accessing partner.cfg of a trading partner.
Syntax
ANSI (Cross Platform) virtual int FirePartnerDirectory(AS2ProfileMgrPartnerDirectoryEventParams *e);
typedef struct {
const char *Name;
char *Directory; int reserved; } AS2ProfileMgrPartnerDirectoryEventParams; Unicode (Windows) virtual INT FirePartnerDirectory(AS2ProfileMgrPartnerDirectoryEventParams *e);
typedef struct {
LPCWSTR Name;
LPWSTR Directory; INT reserved; } AS2ProfileMgrPartnerDirectoryEventParams;
- (void)onPartnerDirectory:(NSString*)name :(NSString**)directory;
#define EID_AS2PROFILEMGR_PARTNERDIRECTORY 3 virtual INT IPWORKSEDI_CALL FirePartnerDirectory(LPSTR &lpszName, LPSTR &lpszDirectory);
Remarks
This event is fired every time partner.cfg needs to be accessed i.e when LoadProfile or GetTPInfo are invoked with partner name not being "self". The Name provides the partner name and Directory indicates the directory in which partner profile is expected. Setting Directory to a different path will make the component look for partner.cfg in that directory. Note: PartnerDirectory event is not fired when ListPartners is invoked.