Integration: Difference between revisions

From SMath Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[SMath Studio Enterprise]], when properly licensed, supports integration with other applications via a [[Calculation Service]]. [[Calculation Service]] is a process that can be started by the calling application to immediately perform calculations. Running multiple [[Calculation Service|Calculation Services]] simultaneously supported.
[[SMath Studio Enterprise]], when properly licensed, supports integration with other applications via a [[Calculation Service]]. [[Calculation Service]] is a process that can be started by the calling application to immediately perform calculations. Running multiple [[Calculation Service|Calculation Services]] simultaneously supported.
It is important to understand that [[Calculation Service]] is not registered in the operating system as a service, and its life cycle completely depends on the calling application. To ensure maximum ease of interaction with [[Calculation Service]] for third-party developers, along with [[SMath Studio Enterprise]] a convenient API is supplied in the form of a file in the program installation directory:
  <nowiki>SMath.UI.Service.Api.dll</nowiki>
When running on Windows, the [[Calculation Service]] API library is registered to interact with COM on [[SMath Studio]] installation, which makes it possible to implement [[Integration|integration]] with [[SMath Studio]] to almost any external application.
[[Calculation Service]] [[SMath Studio]] API use examples for different programming languages ​​can be found in the open SVN repository: https://smath.com/svn/public/integration.
== [[Calculation Service]] Lifecycle ==
Using the provided API, working with [[Calculation Service]] is performed as follows:
# Starting [[Calculation Service]] specifying the port to use.
#: When the process starts, the application components are loaded. It may take a few seconds, depending on your hardware and installed add-ons amount in [[Plugins|SMath Studio Plugins]].
# Requests to calculate .sm file(s) indicating initial data and returning calculation results.
#: Calculation occurs as quickly as possible, because application components are already loaded in memory and ready to make requests.
# Terminating the [[Calculation Service]] process.
#: After [[Calculation Service]] process is completed, its process is unloaded from memory and no longer available for any external applications interaction.


[[Category:Manual]]
[[Category:Manual]]

Revision as of 17:42, 20 August 2024

SMath Studio Enterprise, when properly licensed, supports integration with other applications via a Calculation Service. Calculation Service is a process that can be started by the calling application to immediately perform calculations. Running multiple Calculation Services simultaneously supported.