Xafari Context Service. Disposal

When the IServiceSpace object is removed, the context service object is deleted automatically. There is no need for a separate call.

To execute a special code while disposing an object, redefine the DisposeCore() virtual method.

  • c#
  • VB

protected override void DisposeCore()
{
  // Add here specific dispose code
  base.DisposeCore();
}

Protected Overrides Sub DisposeCore()
  ' Add here specific dispose code
  MyBase.DisposeCore()
End Sub