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

Activities of "muhittincelik"

Answer

I solved the problem. Its about source data column size. It is not releated to row count.

Sorry state is refreshing, page not refreshing. There is no problem.

Answer

I found the problem.

I add the following line to app.settings.production file

"HomePageUrl": "",

HomeController.cs is checking environment is dev or prod. Local pc is dev so core app is running. But on server dont redirect to /Ui/login page.

I solved the problem. I deinstall/install node.js and install yarn again, solved the problem.

Muhittin

Hi

What about power tools. Is it released ?

Muhittin

So we need a new sign-in and user management for public users. Right ?

Thanks

Like marketplace (Amazon, sahibinden.com, gittigidiyor etc.) Each seller is a tenant. And customer buy products from any seller and list orders.

I would be glad if anyone who made a similar project explains the logic with aspnetzero framework.

Thanks.

Solution is;

using System;
using System.Linq;
using Hangfire.Common;
using Hangfire.Server;


namespace Smart.Hangfire
{
    public class DisableConcurrentExecutionAttribute : JobFilterAttribute, IServerFilter
    {
        private readonly int _timeoutInSeconds;

        public DisableConcurrentExecutionAttribute(int timeoutInSeconds)
        {
            if (timeoutInSeconds < 0) throw new ArgumentException("Timeout argument value should be greater that zero.");

            _timeoutInSeconds = timeoutInSeconds;
        }

        public void OnPerforming(PerformingContext filterContext)
        {
            //var resource = GetResource(filterContext.BackgroundJob.Job);
            var resource = String.Format(
                "{0}.{1}",
                filterContext.Job.Type.FullName,
                filterContext.Job.Method.Name);
            

            var timeout = TimeSpan.FromSeconds(_timeoutInSeconds);

            var distributedLock = filterContext.Connection.AcquireDistributedLock(resource, timeout);
            filterContext.Items["DistributedLock"] = distributedLock;
        }

        public void OnPerformed(PerformedContext filterContext)
        {
            if (!filterContext.Items.ContainsKey("DistributedLock"))
            {
                throw new InvalidOperationException("Can not release a distributed lock: it was not acquired.");
            }

            var distributedLock = (IDisposable)filterContext.Items["DistributedLock"];
            distributedLock.Dispose();
        }

        private static string GetResource(Job job)
        {
            return $"{job.Type.ToGenericTypeString()}.{job.Method.Name}";
        }
    }
}

And add attribute to enqueue job method;

using Smart.Hangfire;

[DisableConcurrentExecution(300)]
public async Task .......
{
await _backgroundJobManager.EnqueueAsync
..
..
}

Ok i reproduce the problem.

I created role and give permisions to this role I create a user I create a organizational unit and give this role to this unit Add this organization unit to this user.

Everything ok and work

I edit user permission and unselect all permission's. And save He also owns organizational unit. And can not go pagess. I took and and organizational unit again but nothing changed.

I think user can take permissions from organiational unit if i take from permissions. Or if i take org unit and give again permission may be added again.

Showing 1 to 10 of 67 entries