Base solution for your next web application

Activities of "ismcagdas"

Hi,

Your ManageEmail class should implement ITransientDependecy or ISingletonDependency if you haven't register it manually.

But error message says that "IManageAmazoneS3" is not registered to dependency injection. Maybe something is missing for IManageAmazoneS3 implementation.

Hi,

You can do it like this,

using(UnitOfWorkManager.Current.SetTenantId(null)){
    var tenantId = "get tenant id here";
    using(UnitOfWorkManager.Current.SetTenantId(tenantId)){
        //get records of tenant here...
    }
}

Hi,

Thank you for informing us, we have fixed that.

Hi,

Sorry for long delay on this issue.

Abp is trying to validate MVC Action parameters and when tries to read value of your files parameter to validate it, this exception occurs.

You can ignore HttpPostedFileWrapper types for validation like below and it will fix your issue. Place this code in your Global.asax's application start,

MethodInvocationValidator.IgnoredTypesForRecursiveValidation.AddIfNotContains(typeof(HttpPostedFileWrapper));
Answer

Hi,

Unfortunately we dont have it right now but we are planning to add this feature. Are you ging to start a new project or do you need it for something else ?

And which version do you need ?

Hi,

Abp does not do anything special for this case. So, a user is not allowed to make parallel ajax requests at a time.

It's not recommended but you can try to do it with the mentioned attribute by yourself.

Hi,

First you need to find tenantId with given tenancyName from host database. Then you can switch to tenant context like this.

using (CurrentUnitOfWork.SetTenantId(tenantId))
{
    ......
}

Database operations between using statement will run on tenant database with id: tenantId. Of course, you can switch agian to another tenant or host context in using statement.

Hi,

You need to create a DbMigrator for your Tenant DbContext. Please check second post on this forum topic #1316@38f4c851-f549-4837-9916-2b8a9d396f9a

Hi,

You are right. By the way, you can use [AbpMvcAuthorize] for MVC controllers and actions.

Answer

Hi,

Why don't you make your service singleton, just derive it from ISingletonDependecy. In this way, it will be created only once and MailKitHelper will be created for MailService one time.

Showing 12461 to 12470 of 12723 entries