HtmlElement.Net
Public Member Functions | Properties | List of all members
HtmlElements.LazyLoad.ILoader< out out TObject > Interface Template Reference

Represents contract used for creating/caching objects lazily. More...

Public Member Functions

TObject Load ()
 Create new object instance or take it from cache More...
 
void Reset ()
 Reset cache if it exist. If cache is not supported then it should have no effect. More...
 
TObject ResetAndLoad ()
 Reset cache and create new instance. Similar to subsequent calls to Reset and Load More...
 

Properties

ISearchContext SearchContext [get]
 Context used to load WebElement or WebElement list. More...
 

Detailed Description

Represents contract used for creating/caching objects lazily.

Template Parameters
TObjectType of object to be created/cached

Member Function Documentation

◆ Load()

TObject HtmlElements.LazyLoad.ILoader< out out TObject >.Load ( )

Create new object instance or take it from cache

Returns
Newly created or cached instance.

◆ Reset()

void HtmlElements.LazyLoad.ILoader< out out TObject >.Reset ( )

Reset cache if it exist. If cache is not supported then it should have no effect.

◆ ResetAndLoad()

TObject HtmlElements.LazyLoad.ILoader< out out TObject >.ResetAndLoad ( )

Reset cache and create new instance. Similar to subsequent calls to Reset and Load

Returns
Newly created or cached instance.

Property Documentation

◆ SearchContext

ISearchContext HtmlElements.LazyLoad.ILoader< out out TObject >.SearchContext
get

Context used to load WebElement or WebElement list.