Show / Hide Table of Contents

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 Source

StartProcesses()

Starts the library state processes.

Declaration
void StartProcesses()
| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX