Base solution for your next web application

Activities of "byteplatz"

Hello

How can I localize the dialog that appears when the user does not have access to a certain AppService (marked with AbpAuthorize)

Currently the message is in english :

Required permissions are not granted. At least one of these permissions must be granted: (image attached)

And I didn't find this string on language resources

Thank you very much

Bruno Bertechini

Hello,

Where can I find documentation/samples for the metronic theme ? We need to create few pages and would like to read the documentation regarding the componente set available!

Kind Regards

Bruno Bertechini

Hello

Is that possible to have custom layouts per tenant for the MPA Landing page ?

What approach would be ?

Bruno Bertechini

Hello,

How should I configure a given custom module for localization using the new db-stored language feature from v1.6 ?

Right now we are using this code for XML:

Configuration.Localization.Sources.Add(
                new DictionaryBasedLocalizationSource(
                    ModuleConsts.LocalizationSourceName,
                    new XmlEmbeddedFileLocalizationDictionaryProvider(
                        Assembly.GetExecutingAssembly(),
                        ModuleConsts.LocalizationSourceRootNameSpace
                        )
                    )
                );

Hello,

We are using aspnetzero to develop a distributed system based on SOA, DDD and CQRS principles together with NServiceBus ([http://www.particular.net])).

We are using the approach of separated module for each SOA Service.

We have a main app (aspnet zero code with few customizations). We have a service module (based on [https://github.com/aspnetboilerplate/sample-blog-module])).

Each service is meant to be autonomous and the separated sample blog module seems to be a perfect fit for that.

Next step for us is to come up with a solid approach for configuring permissions. We already have a separated module adding permissions (and they are appearing fine in main app).

We are using the default tenant as the 'Test' tenant for internal use and test of features before they are released to customers.

The question here is : What is the best approach to add service module permissions (from separated solution) to default tenant roles ?

I mean, we dont have the Context from main app inside the sercie module (and we dont find it right indeed).

Ideas/Recommendations ?

Cheers

Bruno Bertechini

Hello there,

We have a separated module from main app and we are trying to create a feature to enable/disable this module.

I am coding this inside the separated solution (my custom module) :

I have created a feature provider and set features like this:

context.Create(
                MyCustomModule.MyFirstFeature,
                defaultValue: "false",
                displayName: L("MyCustomModule"),
                scope: FeatureScopes.All,
                inputType: new CheckboxInputType()
            );

And added this line to MyCustomModuleCoreModule.cs:

Configuration.Features.Providers.Add<MyCustomModuleFeatureProvider>();

I can check in main app logs that this code is being called (I have couple debug logs), but the feature is not showing in tenant or edition selections.

Do I need to do anything else to make the features show up in the menus for tenant and edition selection ?

Cheers

Bruno

Hello Halil,

I am studying the Abp.Samples.Blog solution and I can see that you have created specific classes for authorization and authentication (BlogTenant, BlogUser ...).

Is that a required or recommended approach ?

What are the odds regarding sharing the MainApp.Core Project as nuget packages and install it to Samples.Blog.Core ? Do you see any problems or considerations ?

I Would love to know the caveats under each implementation!

Cheers

Bruno Bertechini

Hello,

After moving to the next step of my separated solution with custom module, I have created the unitofwork/crud operation of a very basic entity. New DataModule created tests running ok.

I have updated the nuget package from main app, and when I log in I get this exception

System.NotSupportedException: The specified LINQ expression contains references to queries that are associated with different contexts.

The exception is being raised at :

var loginResult = await _userManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);

from AccountController:

private async Task<AbpUserManager<Tenant, Role, User>.AbpLoginResult> GetLoginResultAsync(string usernameOrEmailAddress, string password, string tenancyName)
        {
            var loginResult = await _userManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);

            switch (loginResult.Result)
            {
                case AbpLoginResultType.Success:
                    return loginResult;
                default:
                    throw CreateExceptionForFailedLoginAttempt(loginResult.Result, usernameOrEmailAddress, tenancyName);
            }
        }

I have folowed Sample.Blog and changed to v1.6 accordingly

Any ideas ?

It looks like the DI is injecting the Custom Module DbContext into AccountController (UserManager) and trying to mix them up...

Bruno

Hello Halil,

Im trying to understand the eventbus architecture and I have couple questions:

  1. What is the difference between EntityUpdatedEventData/EntityChangedEventData events ?

  2. Does the *ed events (Created, Updated, Changed, Deleted) are triggered after UoW has been commited ? If so, Are there any hooks I can get to do some work (transactionally) before this happen ? My scenario is :

Im using NServiceBus as a BackEnd Message System. I would like the existing EventBus (from Abp) infrastructure from the WebSide to minimize the code I need to write. The problem Is, when an Entity is created for example, I need to run a Bus.Send(onesimplecommand) -- from NServiceBus. This code must be present in the same transaction used to SAVE the entity into the database, since Im using transactional MSMQ queues. This helps me in terms of if I cant write to database, Bus.Send does not happen and if Bus.Send throws an exception, the data is not written to database. (they must be in the same transaction).

Cany ou shed some light on how I can solve this ?

Bruno

Hello Halil,

I managed to make google auth work for aspnetzero and I was wondering if you can help me to understand if its possible to use same google login for diferente tenants ...

After logging with the first tenant (default for example), every time I click on G+ login icon it automatticaly signin into default tenant.

Is this possible?

If so I guess it will only work with Tenant detection using URL ?

Bruno

Showing 1 to 10 of 17 entries