C# Класс SenseNet.ContentRepository.RepositoryInstance

Represents a running Repository. There is always one instance in any appdomain. Repository will be stopped when the instance is disposing.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

ConsoleWrite() публичный Метод

public ConsoleWrite ( ) : void
Результат void

ConsoleWriteLine() публичный Метод

public ConsoleWriteLine ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

StartLucene() публичный Метод

Starts Lucene if it is not running.
public StartLucene ( ) : void
Результат void

StartWorkflowEngine() публичный Метод

Starts workflow engine if it is not running.
public StartWorkflowEngine ( ) : void
Результат void

WaitForWriterLockFileIsReleased() публичный статический Метод

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
Результат bool

WaitForWriterLockFileIsReleased() публичный статический Метод

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
Результат bool

WaitForWriterLockFileIsReleased() публичный статический Метод

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.
Результат bool

WaitForWriterLockFileIsReleased() публичный статический Метод

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.
Результат void