Base solution for your next web application

Activities of "walkerscott"

I think that the problem was that I selected an existing download for version 7.3 and used the 'Download latest version' option.

And this downloaded Zero 8 but with .NET Core 2.2. Which maybe shouldn't be possible because Zero 8 is not compatible with 2.2 anymore ?

Hi,

I downloaded Zero version 8.0.0 but when opening in Visual Studio it doesn't build. Looks to be because some NuGet packages got upgraded to .NET Core 3.0 but projects are still on .NET Core 2.2

Maybe not all changes got included in the zip file ? I tried to download multiple times but still the same.

Sample error

Package Microsoft.EntityFrameworkCore.SqlServer 3.0.0 is not compatible with netcoreapp2.2

Please advise

Answer

we have a solution to this. We save our App Insights Instrumentation Key to AbpSettings and this then gets loaded at startup. We also do something similar for Google Analytics.

We'd be willing to contribute this to AspNetZero repo via PR if the team is interested?

Hi,

Is there a way I can load my configuration from database? Like adding a configs aside from existing appsettings.json I'm planning to use specific data from AbpSettings table and load it in addition from appsettings.json

Thanks, that is exactly where we got to.

We are going to implement a new endpoint Language/GetLanguageTextsByLastModifiedDate and client side caching for performance in our AngularJS SPA.

Thanks for the reply. However, this is server side caching right?

Are you doing any client side caching of translation files in AbpZero SPA interface, so the translation file persists across sessions?

Question

I think I am missing something in the documentation. But is it possible to cache the language translations (by source) for better performance? Note, we are using Zero interface for Host and a custom AngularJS based UI for Tenants/Users, but leveraging Abp functionality where possible.

Ideally we don't want to get all translation texts on each page load:

GET /api/services/app/Language/GetLanguageTexts

Thanks in advance

Hi.

We have a project that is in ABP ASP.NET MVC 5 using Swashbuckle 5.0 for Swagger UI implementation. We follow the steps in this documentation ([https://aspnetboilerplate.com/Pages/Documents/Swagger-UI-Integration#aspnet-5x])) as the guide for implementing swagger and we successfully accessed /swagger/ui/index.

From the image below, we want to show only the Account and OrderUpload endpoint, hiding all default endpoints.

We followed the documentation in [https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API]) to just create specific endpoints only but we're unsuccessful. We encountered problems on using #2 to #4 approach. The only working is #1 that creates all endpoints.

public override void Initialize()
{
    IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

    //-- APPROACH [#1](https://support.aspnetzero.com/QA/Questions/1)
    //Automatically creates Web API controllers for all application services of the application
    DynamicApiControllerBuilder
        .ForAll<IApplicationService>(typeof(DC4ApplicationModule).Assembly, "app")
        .Build();

    //-- APPROACH [#2](https://support.aspnetzero.com/QA/Questions/2)
    DynamicApiControllerBuilder
        .For<IApplicationService>("app")
        .ForMethod("Clear").DontCreateAction()
        .ForMethod("ClearAll").DontCreateAction()
        .Build();

    //-- APPROACH [#3](https://support.aspnetzero.com/QA/Questions/3)
    DynamicApiControllerBuilder
        .ForAll<IApplicationService>(typeof(DC4ApplicationModule).Assembly, "app")
        .ForMethod(builder =>
        {
            if (builder.Method.IsDefined(typeof(MyIgnoreApiAttribute)))
            {
                builder.DontCreate = true;
            }
        })
        .Build();

    //-- APPROACH [#4](https://support.aspnetzero.com/QA/Questions/4)
    DynamicApiControllerBuilder
        .For<IApplicationService>("app")
        .ForMethod("UploadOrders").WithVerb(HttpVerb.Post)
        .Build();

    Configuration.Modules.AbpWebApi().HttpConfiguration.Filters.Add(new HostAuthenticationFilter("Bearer"));
    ConfigureSwaggerUi();
}

For approach #2 and #4, this was the encountered error:

For approach #3, the ForMethod is not available as a definition.

We are thinking that we need to map the correct path put it in "app" in this line of code to access the two controllers (Account and OrderUpload) on WebApi project to use the approaches above.

.ForAll<IApplicationService>(typeof(DC4ApplicationModule).Assembly, "app")

How can we show/hide API end-points using the ABP and user based permissions?

Question

In TokenAuth/Authenticate API method, what's the use of RememberClient? I also tried logging in the UI but it's always false even I checked "Remember Me". It also doesn't extend the expiration of the token. So I'm wondering what is it for?

Okay I got it already.. So i found the app-session.service.ts, and I set the cookie from there.

abp.multiTenancy.setTenantIdCookie(result.tenant.id);
Showing 1 to 10 of 59 entries