Exemplo n.º 1
0
        public ArticlesController(
            IOptions <ArticlesOptions> articlesOptions,
            IAuthorizationService authorizationService,
            ICategoriesCache categoriesCache,
            OperationKeysContainer operationKeysContainer,
            IArticlesPresenter articlesPresenter,
            IServiceProvider serviceProvider) : base(serviceProvider)
        {
            OperationKeys = operationKeysContainer;

            this.articlesOptions      = articlesOptions.Value;
            this.authorizationService = authorizationService;
            this.categoriesCache      = categoriesCache;
            this.articlesPresenter    = articlesPresenter;
        }
Exemplo n.º 2
0
        public ArticlesController(
            IOptionsMonitor <ArticlesOptions> articlesOptions,
            IAuthorizationService authorizationService,
            ICategoriesCache categoriesCache,
            OperationKeysContainer operationKeysContainer,
            IArticlesPresenter articlesPresenter,
            IMaterialsManager materialManager,
            MaterialsAuthorization materialsAuthorization,
            IServiceProvider serviceProvider) : base(serviceProvider)
        {
            OperationKeys = operationKeysContainer;

            this.articlesOptions        = articlesOptions;
            this.authorizationService   = authorizationService;
            this.categoriesCache        = categoriesCache;
            this.articlesPresenter      = articlesPresenter;
            this.materialManager        = materialManager;
            this.materialsAuthorization = materialsAuthorization;
        }
 public ArticleViewViewModel(string title) : base(title)
 {
     articlesPresenter = DependencyService.
                         Get <IArticlesPresenter>();
     InitializeAsync();
 }
Exemplo n.º 4
0
 public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     handler           = new Handler();
     articlesPresenter = new ArticlesPresenter(this);
 }