Interface IRelativityFacade
Represents an interface of facade over Relativity.
Inherited Members
Namespace: Relativity.Testing.Framework
Assembly: Relativity.Testing.Framework.dll
Syntax
public interface IRelativityFacade : IDisposable
Properties
| Improve this Doc View SourceConfig
Gets the IConfigurationService that represents configuration.
Declaration
IConfigurationService Config { get; }
Property Value
| Type | Description |
|---|---|
| IConfigurationService |
Log
Gets the ILogService that provides a set of methods for logging.
Declaration
ILogService Log { get; }
Property Value
| Type | Description |
|---|---|
| ILogService |
RelativityInstanceVersion
Gets the Relativity instance version.
Declaration
string RelativityInstanceVersion { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceGetComponent<T>()
Returns the IRelativityComponent of the given type that was registered.
Declaration
T GetComponent<T>()
where T : class, IRelativityComponent
Returns
| Type | Description |
|---|---|
| T | An instance of IRelativityComponent. |
Type Parameters
| Name | Description |
|---|---|
| T | Type that implements IRelativityComponent. |
RelyOn<T>()
Registers an IRelativityComponent.
Declaration
IRelativityFacade RelyOn<T>()
where T : class, IRelativityComponent, new()
Returns
| Type | Description |
|---|---|
| IRelativityFacade | The same IRelativityFacade instance. |
Type Parameters
| Name | Description |
|---|---|
| T | Type that implements IRelativityComponent. |
RelyOn<T>(T)
Registers a component.
Declaration
IRelativityFacade RelyOn<T>(T component)
where T : class, IRelativityComponent
Parameters
| Type | Name | Description |
|---|---|---|
| T | component | The component of |
Returns
| Type | Description |
|---|---|
| IRelativityFacade | The same IRelativityFacade instance. |
Type Parameters
| Name | Description |
|---|---|
| T | Type that implements IRelativityComponent. |
ResetFacade()
Resets the RelativityFacade so that it can be recreated with a new user context.
Declaration
void ResetFacade()
Resolve(Type)
Resolves and returns a service by interface type.
Declaration
object Resolve(Type service)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | service | The type of service interface. |
Returns
| Type | Description |
|---|---|
| System.Object | The service instance. |
Resolve<T>()
Resolves and returns a service by interface.
Declaration
T Resolve<T>()
Returns
| Type | Description |
|---|---|
| T | The |
Type Parameters
| Name | Description |
|---|---|
| T | The type of service interface. |