C# Class Dashing.ElasticSearch.ElasticSearchEventListener

Inheritance: IOnPostInsertEventListener, IOnPostSaveEventListener, IOnPostDeleteEventListener
显示文件 Open project: Polylytics/dashing

Public Methods

Method Description
AddTypeToIndex ( Type type ) : void
ElasticSearchEventListener ( IElasticClientFactory factory ) : System
OnPostDelete ( object entity, ISession session ) : void
OnPostInsert ( object entity, ISession session ) : void
OnPostSave ( object entity, ISession session ) : void

Private Methods

Method Description
IdOf ( object entity, ISession session ) : string
MaybeDelete ( object entity, ISession session ) : void
MaybeIndex ( object entity, ISession session ) : void
TypeOf ( object entity ) : string

Method Details

AddTypeToIndex() public method

public AddTypeToIndex ( Type type ) : void
type System.Type
return void

ElasticSearchEventListener() public method

public ElasticSearchEventListener ( IElasticClientFactory factory ) : System
factory IElasticClientFactory
return System

OnPostDelete() public method

public OnPostDelete ( object entity, ISession session ) : void
entity object
session ISession
return void

OnPostInsert() public method

public OnPostInsert ( object entity, ISession session ) : void
entity object
session ISession
return void

OnPostSave() public method

public OnPostSave ( object entity, ISession session ) : void
entity object
session ISession
return void