Show / Hide Table of Contents

Interface IStartableLibrary

Defines an interface for startable libraries. A library is a startable library if it contains at least one process that has to be started prior to the library services can be used.

Namespace: Juhta.Net.LibraryManagement
Assembly: Juhta.Net.LibraryManagement.dll
Syntax
public interface IStartableLibrary

Methods

| Improve this Doc View Source

StartProcesses()

Starts the library processes.

Declaration
void StartProcesses()
| Improve this Doc View Source

StopProcesses()

Stops the library processes.

Declaration
bool StopProcesses()
Returns
Type Description
System.Boolean

Returns true if the library 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 processes as completely as possible.

This method will be called even if the initialization process of the library has failed. This means that the method should prepare for such situation where the library 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