コード例 #1
0
ファイル: InstallTypesController.cs プロジェクト: cx525v/WP
        /// <summary>
        ///
        /// </summary>
        /// <param name="cache"></param>
        /// <param name="installTypesApi"></param>
        /// <param name="localizer"></param>
        public InstallTypesController(IDistributedCache cache,
                                      IInstallTypesApi installTypesApi,
                                      IStringLocalizer <InstallTypesController> localizer)
        {
            this._cache = cache;

            this._installTypesApi = installTypesApi;

            this._localizer = localizer;
        }
コード例 #2
0
        /// <summary>
        /// This is the constructor. It is used to
        /// </summary>
        public ProductsController(IDistributedCache cache,
                                  IProductApi productMaintenanceApi,
                                  IDownloadTimesApi downloadTimesApi,
                                  IProductTypesApi productTypesApi,
                                  IManufacturersApi manufacturersApi,
                                  IInstallTypesApi installTypesApi,
                                  IMobileLookupApi mobileLookupApi,
                                  IBrandApi brandApi,
                                  IStringLocalizer <ProductsController> localizer)
        {
            this._cache = cache;

            this._productMaintenanceApi = productMaintenanceApi;

            this._downloadTimesApi = downloadTimesApi;
            this._productTypesApi  = productTypesApi;
            this._manufacturersApi = manufacturersApi;
            this._installTypesApi  = installTypesApi;
            this._mobileLookupApi  = mobileLookupApi;
            this._brandApi         = brandApi;

            this._localizer = localizer;
        }