Esempio n. 1
0
 public StoryViewModel(IStoryService storyService, IStoryRepository storyRepository, ICrashReportService crashReportService)
 {
     _storyService       = storyService;
     _storyRepository    = storyRepository;
     _crashReportService = crashReportService;
     StoryItems          = new ObservableCollection <ItemModel>();
     InitCommands();
 }
Esempio n. 2
0
        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;
        }