C# Class RedisStackOverflow.ServiceInterface.Repository

Inheritance: IRepository
Afficher le fichier Open project: ServiceStack/ServiceStack.Examples

Private Properties

Свойство Type Description
ToQuestionResults List

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
ToQuestionResults ( IEnumerable questions ) : List

Method Details

DeleteAnswer() public méthode

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
Résultat void

DeleteQuestion() public méthode

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

GetAllQuestions() public méthode

public GetAllQuestions ( ) : List
Résultat List

GetAnswersForQuestion() public méthode

public GetAnswersForQuestion ( long questionId ) : List
questionId long
Résultat List

GetOrCreateUser() public méthode

public GetOrCreateUser ( RedisStackOverflow.ServiceModel.User user ) : RedisStackOverflow.ServiceModel.User
user RedisStackOverflow.ServiceModel.User
Résultat RedisStackOverflow.ServiceModel.User

GetQuestion() public méthode

public GetQuestion ( long questionId ) : RedisStackOverflow.ServiceModel.QuestionResult
questionId long
Résultat RedisStackOverflow.ServiceModel.QuestionResult

GetQuestionStats() public méthode

public GetQuestionStats ( long questionId ) : RedisStackOverflow.ServiceModel.QuestionStat
questionId long
Résultat RedisStackOverflow.ServiceModel.QuestionStat

GetQuestionsByUser() public méthode

public GetQuestionsByUser ( long userId ) : List
userId long
Résultat List

GetQuestionsTaggedWith() public méthode

public GetQuestionsTaggedWith ( string tagName ) : List
tagName string
Résultat List

GetRecentQuestionResults() public méthode

public GetRecentQuestionResults ( int skip, int take ) : List
skip int
take int
Résultat List

GetSiteStats() public méthode

public GetSiteStats ( ) : RedisStackOverflow.ServiceModel.SiteStats
Résultat RedisStackOverflow.ServiceModel.SiteStats

GetTagsByPopularity() public méthode

public GetTagsByPopularity ( int skip, int take ) : List
skip int
take int
Résultat List

GetUserStats() public méthode

public GetUserStats ( long userId ) : RedisStackOverflow.ServiceModel.UserStat
userId long
Résultat RedisStackOverflow.ServiceModel.UserStat

GetUsersByIds() public méthode

public GetUsersByIds ( IEnumerable userIds ) : List
userIds IEnumerable
Résultat List

Repository() public méthode

public Repository ( IRedisClientsManager redisManager ) : System
redisManager IRedisClientsManager
Résultat System

StoreAnswer() public méthode

public StoreAnswer ( RedisStackOverflow.ServiceModel.Answer answer ) : void
answer RedisStackOverflow.ServiceModel.Answer
Résultat void

StoreQuestion() public méthode

public StoreQuestion ( RedisStackOverflow.ServiceModel.Question question ) : void
question RedisStackOverflow.ServiceModel.Question
Résultat void

VoteAnswerDown() public méthode

public VoteAnswerDown ( long userId, long answerId ) : void
userId long
answerId long
Résultat void

VoteAnswerUp() public méthode

public VoteAnswerUp ( long userId, long answerId ) : void
userId long
answerId long
Résultat void

VoteQuestionDown() public méthode

public VoteQuestionDown ( long userId, long questionId ) : void
userId long
questionId long
Résultat void

VoteQuestionUp() public méthode

public VoteQuestionUp ( long userId, long questionId ) : void
userId long
questionId long
Résultat void