Connection.Initialized Event

Definition

Occurs when all modules contained in this connection have been initialized.

public:
 event EventHandler ^ Initialized;
public event EventHandler Initialized;
member this.Initialized : EventHandler 
Public Custom Event Initialized As EventHandler 

Event Type

Examples


protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) {
    base.Initialize(serviceProvider, moduleInfo);

    Connection conx = (Connection)serviceProvider.GetService(typeof(Connection));
    conx.Initialized += new EventHandler(conx_Initialized);
void conx_Initialized(object sender, EventArgs e) {
      //System.Windows.Forms.MessageBox.Show("Client API - Client.Connection.Initialized", sender.ToString());
}

Remarks

You should register the event handler in the source file that implements the Module object.

Applies to