C# 클래스 Prototype.Service.Data.DataOperations

상속: IDataOperations
파일 보기 프로젝트 열기: radicalgeek/SampleMicroservice 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetStopwatch ( ) : Stopwatch

메소드 상세

CreateSampleEntities() 공개 메소드

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
리턴 void

DataOperations() 공개 메소드

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
리턴 System

DeleteSampleEntities() 공개 메소드

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
리턴 void

GetSampleEntities() 공개 메소드

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
리턴 void

PublishErrorMessage() 공개 메소드

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

PublishSuccessMessage() 공개 메소드

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

UpdateSampleEntities() 공개 메소드

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
리턴 void