C# 클래스 RedisStackOverflow.ServiceInterface.Repository

상속: IRepository
파일 보기 프로젝트 열기: ServiceStack/ServiceStack.Examples

Private Properties

프로퍼티 타입 설명
ToQuestionResults List

공개 메소드들

메소드 설명
DeleteAnswer ( long questionId, long answerId ) : void

Delete Answer by performing compensating actions to StoreAnswer() to keep the datastore in a consistent state

DeleteQuestion ( long questionId ) : void

Delete question by performing compensating actions to StoreQuestion() to keep the datastore in a consistent state

GetAllQuestions ( ) : List
GetAnswersForQuestion ( long questionId ) : List
GetOrCreateUser ( RedisStackOverflow.ServiceModel.User user ) : RedisStackOverflow.ServiceModel.User
GetQuestion ( long questionId ) : RedisStackOverflow.ServiceModel.QuestionResult
GetQuestionStats ( long questionId ) : RedisStackOverflow.ServiceModel.QuestionStat
GetQuestionsByUser ( long userId ) : List
GetQuestionsTaggedWith ( string tagName ) : List
GetRecentQuestionResults ( int skip, int take ) : List
GetSiteStats ( ) : RedisStackOverflow.ServiceModel.SiteStats
GetTagsByPopularity ( int skip, int take ) : List
GetUserStats ( long userId ) : RedisStackOverflow.ServiceModel.UserStat
GetUsersByIds ( IEnumerable userIds ) : List
Repository ( IRedisClientsManager redisManager ) : System
StoreAnswer ( RedisStackOverflow.ServiceModel.Answer answer ) : void
StoreQuestion ( RedisStackOverflow.ServiceModel.Question question ) : void
VoteAnswerDown ( long userId, long answerId ) : void
VoteAnswerUp ( long userId, long answerId ) : void
VoteQuestionDown ( long userId, long questionId ) : void
VoteQuestionUp ( long userId, long questionId ) : void

비공개 메소드들

메소드 설명
ToQuestionResults ( IEnumerable questions ) : List

메소드 상세

DeleteAnswer() 공개 메소드

Delete Answer by performing compensating actions to StoreAnswer() to keep the datastore in a consistent state
public DeleteAnswer ( long questionId, long answerId ) : void
questionId long
answerId long
리턴 void

DeleteQuestion() 공개 메소드

Delete question by performing compensating actions to StoreQuestion() to keep the datastore in a consistent state
public DeleteQuestion ( long questionId ) : void
questionId long
리턴 void

GetAllQuestions() 공개 메소드

public GetAllQuestions ( ) : List
리턴 List

GetAnswersForQuestion() 공개 메소드

public GetAnswersForQuestion ( long questionId ) : List
questionId long
리턴 List

GetOrCreateUser() 공개 메소드

public GetOrCreateUser ( RedisStackOverflow.ServiceModel.User user ) : RedisStackOverflow.ServiceModel.User
user RedisStackOverflow.ServiceModel.User
리턴 RedisStackOverflow.ServiceModel.User

GetQuestion() 공개 메소드

public GetQuestion ( long questionId ) : RedisStackOverflow.ServiceModel.QuestionResult
questionId long
리턴 RedisStackOverflow.ServiceModel.QuestionResult

GetQuestionStats() 공개 메소드

public GetQuestionStats ( long questionId ) : RedisStackOverflow.ServiceModel.QuestionStat
questionId long
리턴 RedisStackOverflow.ServiceModel.QuestionStat

GetQuestionsByUser() 공개 메소드

public GetQuestionsByUser ( long userId ) : List
userId long
리턴 List

GetQuestionsTaggedWith() 공개 메소드

public GetQuestionsTaggedWith ( string tagName ) : List
tagName string
리턴 List

GetRecentQuestionResults() 공개 메소드

public GetRecentQuestionResults ( int skip, int take ) : List
skip int
take int
리턴 List

GetSiteStats() 공개 메소드

public GetSiteStats ( ) : RedisStackOverflow.ServiceModel.SiteStats
리턴 RedisStackOverflow.ServiceModel.SiteStats

GetTagsByPopularity() 공개 메소드

public GetTagsByPopularity ( int skip, int take ) : List
skip int
take int
리턴 List

GetUserStats() 공개 메소드

public GetUserStats ( long userId ) : RedisStackOverflow.ServiceModel.UserStat
userId long
리턴 RedisStackOverflow.ServiceModel.UserStat

GetUsersByIds() 공개 메소드

public GetUsersByIds ( IEnumerable userIds ) : List
userIds IEnumerable
리턴 List

Repository() 공개 메소드

public Repository ( IRedisClientsManager redisManager ) : System
redisManager IRedisClientsManager
리턴 System

StoreAnswer() 공개 메소드

public StoreAnswer ( RedisStackOverflow.ServiceModel.Answer answer ) : void
answer RedisStackOverflow.ServiceModel.Answer
리턴 void

StoreQuestion() 공개 메소드

public StoreQuestion ( RedisStackOverflow.ServiceModel.Question question ) : void
question RedisStackOverflow.ServiceModel.Question
리턴 void

VoteAnswerDown() 공개 메소드

public VoteAnswerDown ( long userId, long answerId ) : void
userId long
answerId long
리턴 void

VoteAnswerUp() 공개 메소드

public VoteAnswerUp ( long userId, long answerId ) : void
userId long
answerId long
리턴 void

VoteQuestionDown() 공개 메소드

public VoteQuestionDown ( long userId, long questionId ) : void
userId long
questionId long
리턴 void

VoteQuestionUp() 공개 메소드

public VoteQuestionUp ( long userId, long questionId ) : void
userId long
questionId long
리턴 void