Table of Contents

Class DataProviderContext

Namespace
Ranorex.Core.Data
Assembly
Ranorex.Core.dll

Provides a thread-safe context associated with a specific IDataProvider.

public sealed class DataProviderContext : IDisposable
Inheritance
DataProviderContext
Implements
Inherited Members

Constructors

DataProviderContext(IDataProvider)

Initializes a new instance of the DataProviderContext class.

public DataProviderContext(IDataProvider dataProvider)

Parameters

dataProvider IDataProvider

The data provider associated with this context.

Properties

Current

Gets the data provider for the current thread.

public static IDataProvider Current { get; }

Property Value

IDataProvider

The current data provider.

Methods

Dispose()

Disposes the context by popping the Current data provider from the stack.

public void Dispose()

Pop()

Removes the Current data provider instance from the stack.

public static IDataProvider Pop()

Returns

IDataProvider

The data provider that was on top of the stack.

Push(IDataProvider)

Pushes the specified provider on the data provider stack making it the Current data provider.

public static void Push(IDataProvider provider)

Parameters

provider IDataProvider

The provider to push on the stack.