C# Class Prototype.Service.Data.DataOperations

Inheritance: IDataOperations
Mostrar archivo Open project: radicalgeek/SampleMicroservice Class Usage Examples

Public Methods

Method Description
CreateSampleEntities ( dynamic message ) : void

Create an item in the datastore

DataOperations ( ILogger logger, IMessagePublisher publisher, string>.IRepository sampleRepository, Prototype.Service.Settings.IEnvironment environment ) : System
DeleteSampleEntities ( dynamic message ) : void

Remove a message from the data store based on Id

GetSampleEntities ( dynamic message ) : void

Retrive a message from the datastore

PublishErrorMessage ( dynamic orignalMessage, string errorMessage, string topic ) : void
PublishSuccessMessage ( dynamic orignalMessage, List entities, string topic ) : void
UpdateSampleEntities ( dynamic message ) : void

Update an item in the datastore

Private Methods

Method Description
GetStopwatch ( ) : Stopwatch

Method Details

CreateSampleEntities() public method

Create an item in the datastore
public CreateSampleEntities ( dynamic message ) : void
message dynamic The dynamic message from the bus containing the details of the item to be updated
return void

DataOperations() public method

public DataOperations ( ILogger logger, IMessagePublisher publisher, string>.IRepository sampleRepository, Prototype.Service.Settings.IEnvironment environment ) : System
logger ILogger
publisher IMessagePublisher
sampleRepository string>.IRepository
environment Prototype.Service.Settings.IEnvironment
return System

DeleteSampleEntities() public method

Remove a message from the data store based on Id
public DeleteSampleEntities ( dynamic message ) : void
message dynamic The dynamic message object from the bus containing details of the item to be deleted
return void

GetSampleEntities() public method

Retrive a message from the datastore
public GetSampleEntities ( dynamic message ) : void
message dynamic The dynamic message from the bus containig the details of the item to retrive
return void

PublishErrorMessage() public method

public PublishErrorMessage ( dynamic orignalMessage, string errorMessage, string topic ) : void
orignalMessage dynamic
errorMessage string
topic string
return void

PublishSuccessMessage() public method

public PublishSuccessMessage ( dynamic orignalMessage, List entities, string topic ) : void
orignalMessage dynamic
entities List
topic string
return void

UpdateSampleEntities() public method

Update an item in the datastore
public UpdateSampleEntities ( dynamic message ) : void
message dynamic The dynamic message from the bus containing the details of the item to be updated
return void