IEquillaExtensionSession Interface

A session object may be created and shared between all instances of an extension object used within a single chart (or portfolio). Such a session object must implement the IEquillaExtensionSession interface.
interface IEquillaExtensionSession
{
    void Attach();
    void Detach();
}
An extension session object will only ever be created by an extension object that implements the ISupportSessions interface.

Shortly after the session object is returned from the ISupportSessions.CreateSessionObject() method, the Attach() method will be called. It is expected that the majority of the construction logic for the session object will be performed in this method instead of the object's constructor.

When the last extension object that uses a session is removed from the chart (or portfolio), the Detach() method will be called, so that the extension session can perform clean-up. It is expected that the majority of the destruction logic for the session object will be performed in this method instead of the object's destructor.