Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "dev_frontrush"

Question

I have a proxy service that gets a byte array (file contents) and want the user to be able to download it. This looks like it worked at one time (https://forum.aspnetboilerplate.com/viewtopic.php?p=26371) but the temp folder was removed. How to do this?

The proxy service is in the Application project and inherits from the AppServiceBase. The proxy service gets files from S3 and returns them to other services in the Application project as a byte array. They are secure files and must have a specific permission to download. The proxy service could be moved as it is not publicly available / marked as internal and will only be used by other services that inherit from the ApplicationServiceBase class.

The other services need to be able to push the byte array as one of the MimeTypeNames to the user to download the file.

This seems like one of the most basic needs of a web application but I can't find a solution. Am I overlooking something?

Angular + Core 6.9 and 7.0

Hello,

A developer on our team is getting an error about having an open data reader but it only happens in their development environment. We have a base class that inherits the AppNameAppServiceBase class and makes use of the GetCurrentUser() and GetCurrentTenant() base class methods. It seems like they are running multiple debugging instances or something similar and/or their local database configuration may be specific where either pooling isn't configured or??? The odd part is the debugger doesn't catch the exception it just silently fails with a 500 error from the inheriting ServiceNameAppService. Below is an example/similar class:

/// <summary>
/// SomeApplicationServiceBase
/// </summary>
/// <remarks>
/// Base class for services that require a tenant and an active other entity.
/// </remarks>
public abstract class RequiredEntityApplicationServiceBase : AppNameAppServiceBase
{
    // the other entity is a junction table between the AbpUsers and the other application entity
    protected readonly IRepository<UserRequiredEntity> _otherEntityRepository;

    /// <summary>
    /// Constructor
    /// </summary>
    public RequiredEntityApplicationServiceBase(IRepository<UserRequiredEntity> userRequiredEntityRepository)
    {
        this._userRequiredEntityRepository = userRequiredEntityRepository;
    }

    protected virtual RequiredEntity GetRequiredEntity()
    {
        RequiredEntity requiredEntity = null;
        
        // Fails here silently with DataReader currently open exception
        var user = this.GetCurrentUser();

        ...
        
        return requiredEntity;
    }

    public int TenantId
    {
        get
        {
            return this.GetCurrentTenant().Id;
        }
    }

    
    public int RequiredEntityId
    {
        get
        {
            return this.GetRequiredEntity().Id;
        }
    }
}

Any ideas? Should the UserManager and AbpSession be injected into the base?

Question

We are considering introducing SCSS for some universal items but as far as I know Zero uses LESS for themes and the angular cli doesn't support mixing OTB. Now I know we could make it work some additional build tasks or bundling but would like to hear from the Zero team on what the pros and cons would be in doing so.

My take is to use the theming engine as Zero has implemented with any theme related deviations in the actual themes or theme bundles using LESS. Some of the team has a preference for SCSS but I don't see the benefits of deviation just for the sake of including another preprocessor.

Something I was considering is converting all of the less files to scss files and using scss as the preprocessor but in future merges/updates would need to keep track of any changes to theme specific style changes and convert or just reconvert everytime we merge with the latest.

Does anyone have an example of the Anuglar component and Application service using the Kendo Angular grid with the Angular solution having a service in the Application project that has something like:

public DataSourceResult GetProducts([DataSourceRequest]DataSourceRequest request) { return productRepository.GetAll().ToDataSourceResult(request); }

Question

Getting EntryPoint undefined = extract-text-webpack-plugin-output-filename errors for several css files, webpack 4 doesn't support using

Hello all,

We saw that for the 6.7.0 release notes that you have moved away from the Web Compiler extension in favor of GULP. I am wondering of any changes that have to made on our end, since we currently are configured for Web Compiler, so we can take advantage of all the new enhancements brought on from 6.8.0's upgrade.

Stack

  • Core & Angualr .NET Zero
  • Sass (scss) pre-compiler (currently with Web Compiler extension)

We have a root /sass/ folder following the 7-in-1 architecture as well as localized scss files for components since the CLI auto-compiles those. For the root sass folder, we have the following compiler.json file:

[
  {
    "outputFile": "src/assets/primeng/datatable/css/primeng.datatable.css",
    "inputFile": "src/assets/primeng/datatable/css/primeng.datatable.less"
  },
  {
    "outputFile": "src/assets/primeng/file-upload/css/primeng.file-upload.css",
    "inputFile": "src/assets/primeng/file-upload/css/primeng.file-upload.less"
  },
  {
    "outputFile": "src/assets/primeng/autocomplete/css/primeng.autocomplete.css",
    "inputFile": "src/assets/primeng/autocomplete/css/primeng.autocomplete.less"
  },
  {
    "outputFile": "src/assets/common/styles/themes/default/metronic-customize.css",
    "inputFile": "src/sass/themes/default/_metronic-customize.scss"
  },
  {
    "outputFile": "src/assets/common/styles/metronic-customize.css",
    "inputFile": "src/sass/vendors/_metronic-customize.scss"
  },
  {
    "outputFile": "src/assets/common/styles/metronic-customize-angular.css",
    "inputFile": "src/sass/vendors/_metronic-customize-angular.scss"
  },
  {
    "outputFile": "src/assets/common/styles/themes/default/metronic-customize-angular.css",
    "inputFile": "src/sass/themes/default/_metronic-customize-angular.scss"
  },
  {
    "outputFile": "src/assets/common/styles/themes/default/primeng.datatable.css",
    "inputFile": "src/sass/themes/default/_primeng.datatable.scss"
  },
  {
    "outputFile": "src/styles.css",
    "inputFile": "src/sass/base/_base.scss"
  },
  {
    "outputFile": "src/sass/main.css",
    "inputFile": "src/sass/main.scss"
  }
]

What would we have to modify to utilize GULP, if needed, or is the Web Compiler fine continuining onwards? (With future updates, I feel the need to swap to GULP now before the application grows too large is pretty important).

Thank you!

Are there any examples samples of data binding with Kendo for Angular 2+ with the Zero for Angular solution? Any kind of mock solution for using their grid or other data bound controls would be great, especially anything that does paging, etc.

Thanks,

Jeff Grizzle [email protected]

Question

Any go-tos from anyone on using Telerik without a bunch of hassle on styling, binding, etc.? You guys have a great product put together here but integrations with control libraries seems to be an issue.

Showing 11 to 18 of 18 entries