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
Show file Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

Method 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

Method 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 method

public ConsoleWrite ( ) : void
return void

ConsoleWriteLine() public method

public ConsoleWriteLine ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

StartLucene() public method

Starts Lucene if it is not running.
public StartLucene ( ) : void
return void

StartWorkflowEngine() public method

Starts workflow engine if it is not running.
public StartWorkflowEngine ( ) : void
return void

WaitForWriterLockFileIsReleased() public static method

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
return bool

WaitForWriterLockFileIsReleased() public static method

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
return bool

WaitForWriterLockFileIsReleased() public static method

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.
return bool

WaitForWriterLockFileIsReleased() public static method

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.
return void