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

Activities of "antonis"

The problem is the communication from one service to another. How do I do that? Scenario is as follows I have Microservice A. Client sends a request to MicroServiceA. I want to check if that user is authenticated and if he is, I want to check if he has a specific permission. If he has he performs the operation of MicroServiceA. MicroserviceA receives the request from client and then sends a request to aspnetzero .net core. Aspnetzero .net core checks if that user is authenticated and checks specific permissions and reply back to MicroserviceA. MicroServiceA then replies back to client with 401 or proceeds with the user request

Hi, In order to do so I have to reference dlls from aspnetzero. I don't want to follow this approach because each microservice shouldn't be sharing code and referencing with another app and also my microservice is written in different language (java). Desirable behavior is to call aspnetzero core using Http and perform the task

Thanks

Hi,

When I press F5 again sometimes it loads sometimes the same problem. The problem occurs both when the user is logged in and logged out

Thanks

No. Browser is chrome. I tested it also on firefox and same problem

Hi,

I am still experiencing the problem.

I added a console debug log at the AbpHttpInterceptor

intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {

        var interceptObservable = new Subject<HttpEvent<any>>();
        var modifiedRequest = this.normalizeRequestHeaders(request);

        next.handle(modifiedRequest)
            .catch((error: any, caught: Observable<any>) => {
                return this.handleErrorResponse(error, interceptObservable);
            })
            .subscribe((event: HttpEvent<any>) => {
                let resp: any = event;
                if (resp && resp.url)
                {
                    console.debug("Code: " + resp.status + " - " + "Url: " + resp.url);
                }
                else
                {
                    console.debug("Response is null in interceptor");
                }
                this.handleSuccessResponse(event, interceptObservable);
            });

        return interceptObservable;
    }

and whenever the problem occurs I only see the following output in console without any errors but in the network tab of dev tools I can see that more requests are returned from the server with status 200 (GetAll, GetProfilePicture etc...)

Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations

instead when the app loads without any issues I get:

Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Profile/GetProfilePicture
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/UserLink/GetRecentlyUsedLinkedUsers
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Profile/GetProfilePicture
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/UserLink/GetRecentlyUsedLinkedUsers

So that means nothing in used under that folder? Could you be more specific please. These files are killing my performance and performance is so crucial. It is pity to include files that are not used at all and they are just leftovers.

Answer

<cite>ismcagdas: </cite> @antonis default setting values are not stored in database. They are defined with the setting itself in the code. The setting values in the database overrides default values defined in the code.

That's why I suggested to insert values to the database (AbpSettigs table) for changing setting defaults. This is an example setting with a default value <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Timing/TimingSettingProvider.cs">https://github.com/aspnetboilerplate/as ... rovider.cs</a>.

I have already done that. I just want to know where are the default values defined in the code?

I read the thread. The guy said that he removed metronic in order to use bootstrap-material. So this is not my case.

Please do let me know which files are not used from the metronic theme as it seems that they are huge and they have a performance impact on the load time.

Thanks

Answer

Hi,

The question is where are these settings (default) are stored not how to get them. I cannot debug the code because is using AbpBoilerplate dll.

Thanks

Answer

Hi,

Where are default values stored?

Also can you point on where the seed is done?

Thanks

Showing 81 to 90 of 130 entries