C# Class SenseNet.ContentRepository.RepositoryInstance

Represents a running Repository. There is always one instance in any appdomain. Repository will be stopped when the instance is disposing.
Inheritance: IDisposable
Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Méthodes publiques

Méthode Description
ConsoleWrite ( ) : void
ConsoleWriteLine ( ) : void
Dispose ( ) : void
StartLucene ( ) : void

Starts Lucene if it is not running.

StartWorkflowEngine ( ) : void

Starts workflow engine if it is not running.

WaitForWriterLockFileIsReleased ( ) : bool

Waits for releasing index writer lock file in the configured index directory. Timeout: configured with IndexLockFileWaitForRemovedTimeout key. Returns true if the lock was released. Returns false if the time has expired.

WaitForWriterLockFileIsReleased ( string indexDirectory ) : bool

Waits for releasing index writer lock file in the specified directory. Timeout: configured with IndexLockFileWaitForRemovedTimeout key. Returns true if the lock was released. Returns false if the time has expired.

WaitForWriterLockFileIsReleased ( string indexDirectory, int timeout ) : bool

Waits for releasing index writer lock file in the specified directory and timeout. Returns true if the lock was released. Returns false if the time has expired.

WaitForWriterLockFileIsReleased ( WaitForLockFileType waitType ) : void

Waits for write.lock to disappear for a configured time interval. Timeout: configured with IndexLockFileWaitForRemovedTimeout key. If timeout is exceeded an error is logged and execution continues. For errors at OnStart an email is also sent to a configured address.

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
DoStart ( ) : void
Domain_AssemblyLoad ( object sender, AssemblyLoadEventArgs args ) : void
Domain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
Domain_ReflectionOnlyAssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
Domain_ResourceResolve ( object sender, ResolveEventArgs args ) : Assembly
Domain_TypeResolve ( object sender, ResolveEventArgs args ) : Assembly
Domain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
GetLoadedAsmNames ( ) : IEnumerable
LoadAssemblies ( ) : void
RegisterAppdomainEventHandlers ( ) : void
RemoveIndexWriterLockFile ( ) : void
RepositoryInstance ( ) : System
RestoreIndexOnStartup ( ) : bool
SendWaitForLockErrorMail ( ) : void
Shutdown ( ) : void
Start ( RepositoryStartSettings settings ) : RepositoryInstance
StartManagers ( ) : void
Started ( ) : bool

Method Details

ConsoleWrite() public méthode

public ConsoleWrite ( ) : void
Résultat void

ConsoleWriteLine() public méthode

public ConsoleWriteLine ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

StartLucene() public méthode

Starts Lucene if it is not running.
public StartLucene ( ) : void
Résultat void

StartWorkflowEngine() public méthode

Starts workflow engine if it is not running.
public StartWorkflowEngine ( ) : void
Résultat void

WaitForWriterLockFileIsReleased() public static méthode

Waits for releasing index writer lock file in the configured index directory. Timeout: configured with IndexLockFileWaitForRemovedTimeout key. Returns true if the lock was released. Returns false if the time has expired.
public static WaitForWriterLockFileIsReleased ( ) : bool
Résultat bool

WaitForWriterLockFileIsReleased() public static méthode

Waits for releasing index writer lock file in the specified directory. Timeout: configured with IndexLockFileWaitForRemovedTimeout key. Returns true if the lock was released. Returns false if the time has expired.
public static WaitForWriterLockFileIsReleased ( string indexDirectory ) : bool
indexDirectory string
Résultat bool

WaitForWriterLockFileIsReleased() public static méthode

Waits for releasing index writer lock file in the specified directory and timeout. Returns true if the lock was released. Returns false if the time has expired.
public static WaitForWriterLockFileIsReleased ( string indexDirectory, int timeout ) : bool
indexDirectory string
timeout int Timeout in milliseconds.
Résultat bool

WaitForWriterLockFileIsReleased() public static méthode

Waits for write.lock to disappear for a configured time interval. Timeout: configured with IndexLockFileWaitForRemovedTimeout key. If timeout is exceeded an error is logged and execution continues. For errors at OnStart an email is also sent to a configured address.
public static WaitForWriterLockFileIsReleased ( WaitForLockFileType waitType ) : void
waitType WaitForLockFileType A parameter that influences the logged error message and email template only.
Résultat void