BIMSource.SPWriter.Application.OnShutdown C# (CSharp) Method

OnShutdown() public method

Fires off when Revit Session Ends
public OnShutdown ( UIControlledApplication application ) : System.Result
application UIControlledApplication An object that is passed to the external application which contains the controlled application.
return System.Result
        public Result OnShutdown(UIControlledApplication application)
        {
            try
              {

            //TODO: add you code below.

            return Result.Succeeded;
              }
              catch (Exception ex)
              {
            MessageBox.Show(ex.ToString());
            return Result.Failed;
              }
        }