C# Класс RedisStackOverflow.ServiceInterface.Repository

Наследование: IRepository
Показать файл Открыть проект

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