public StoryViewModel(IStoryService storyService, IStoryRepository storyRepository, ICrashReportService crashReportService) { _storyService = storyService; _storyRepository = storyRepository; _crashReportService = crashReportService; StoryItems = new ObservableCollection <ItemModel>(); InitCommands(); }
public StoryCommentsViewModel(IStoryService storyService, IStoryCommentsRepository storyCommentsRepository, ICrashReportService crashReportService) { this.storyService = storyService; this.storyCommentsRepository = storyCommentsRepository; this.crashReportService = crashReportService; CommentItems = new ObservableCollection <ItemCommentModel>(); LoadStoryCommentsCommand = new Command <List <long> >(ExecuteLoadStoryCommentCommand); }
private const long MaximumSizeInBytes = 10485760; // 10MB public CrashReportsController( ICrashReportService crashReportService, IHttpContextAccessor httpContextAccessor, ILogger <CrashReportsController> logger, IConfiguration configuration) { this.crashReportService = crashReportService; this.httpContextAccessor = httpContextAccessor; this.logger = logger; this.configuration = configuration; }