PartnerDirectory Event
Fired before accessing partner.cfg of a trading partner.
Syntax
public event OnPartnerDirectoryHandler OnPartnerDirectory; public delegate void OnPartnerDirectoryHandler(object sender, As2profilemgrPartnerDirectoryEventArgs e); public class As2profilemgrPartnerDirectoryEventArgs : EventArgs { public string Name { get; } public string Directory { get; set; } }
Public Event OnPartnerDirectory As OnPartnerDirectoryHandler Public Delegate Sub OnPartnerDirectoryHandler(sender As Object, e As As2profilemgrPartnerDirectoryEventArgs) Public Class As2profilemgrPartnerDirectoryEventArgs Inherits EventArgs Public ReadOnly Property Name As String Public Property Directory As String End Class
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.