Base solution for your next web application

Activities of "easyest"

Answer

There was no need to auto-start any of our products in this way - we do create windows services for background tasks.

Google gives enough results for auto-start of an application, but it always mentions "serviceAutoStartProvider". My first thought was to create such class and run ABP bootstrap procedure like Your console application example. But what will happen when the bootstrap procedure will be started once again from global.asax?

Answer

That is done and application is always running. It just does not start after IIS restart.

There are more styles that are set on the select button from metronic theme. For example - font size, color, caps...

Answer

By the way, I do have another problem with many-to-many relationship - after adding navigational property, I get an error

The relationship between the two objects cannot be defined because they are attached to different ObjectContext objects.

But this can be due to my heavily spoiled testing project and I intend to check it on a fresh project when I will test last version.

Answer

Entity framework does not create the table because primary keys in both entities have same name "Id". For entity framework to generate correct relationship, primary key names should be different. Your only solution is to use Fluent API.

Please excuse me, I may have asked wrong question. The question would be - how to extend organization unit entity? I can extend it as I want, but will OrganizationUnitManager use it? I can extend Tenant, because AbpTenantManager takes class as parameter, but this is not the case with OrganizationUnit , Edition, Language, LanguageText, Notification. So my question is how to extend those?

Please search this forum - I have already posted such attributes with some comments to them.

You cannot authorize "nothing". So, there needs to be a user that You can authorize. If You don't want to send user details - no problem with that, just check and authorize the default user. So, You need to have this default user in Your system - just create a tenant "guest" and admin user for this tenant with any password. Then create new method for login without model:

[HttpPost]
        public async Task<AjaxResponse> Authenticate()
        {
            CheckModelState();

            var loginResult = await GetLoginResultAsync(
                "admin",
                "adminpassword",
                "guest"
                );

            var ticket = new AuthenticationTicket(loginResult.Identity, new AuthenticationProperties());

            var currentUtc = new SystemClock().UtcNow;
            ticket.Properties.IssuedUtc = currentUtc;
            ticket.Properties.ExpiresUtc = currentUtc.Add(TimeSpan.FromMinutes(30));

            return new AjaxResponse(OAuthBearerOptions.AccessTokenFormat.Protect(ticket));
        }

The only difference is that You use predefined values for GetLoginResultAsync instead of values from login model.

Hasan, I don't think they can answer Your question, as there is no question about ASP.NET Zero actually. There are only two ways to access a resource - with or without authorization. If You want You resource to be accessible without authorization - remove AbpAuthorize tag from Your method. If You want authorization, You will need to send something from Your Android app for the system to authorize. The method Authenticate gives You a token, that You will need to send with Your requests later and it's up to Your Android application to make sure this token is send with later requests. Another way would be to send basic authenticate header with Your api requests, but I am not sure if ASP.NET Zero supports that. On the other hand, this way is a really bad way, so You should not use it.

+1 for such feature.

Showing 11 to 20 of 25 entries