Interface IStartableLibraryState
Defines an interface for startable library states. A library state is a startable if it contains at least one process that has to be started prior to the library state services can be used.
Namespace: Juhta.Net.LibraryManagement
Assembly: Juhta.Net.LibraryManagement.dll
Syntax
public interface IStartableLibraryState
Methods
| Improve this Doc View SourceStartProcesses()
Starts the library state processes.
Declaration
void StartProcesses()
StopProcesses(Boolean)
Stops the library state processes.
Declaration
bool StopProcesses(bool final)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | final | Specifies whether this call is the final call on this method. If true, the current library state instance is the last instance, and the application is shutting down. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the library state processes were stopped without errors, or false if at least one error occurred in the stopping process. |
Remarks
This method should not throw exceptions. It is recommended that, in case of an error, the error is logged and the stopping process is continued for the rest of the processes. In other words, the method should stop the library state processes as completely as possible.
This method will be called even if the initialization process of the library state has failed. This means that the method should prepare for such situation where the library state processes have not been started at all or started only partially.