Base solution for your next web application

Activities of "muhittincelik"

Question

Hi,

RAD Tool prereq is .Net Core 2.2 Framework but this version is end of life. Can you upgrade RAD tool for a new version of framework.

Hi,

I want to get curreny price alert from tradingview webhooks to my site. Tradingview webhook config screen includes only webhook address and message (json or text).

I have a service updateprice (curr: text, price:text) and required authorization. I can user bearer token in json message but token will expire after a specific time. Does anyone have any suggestions ?

Muhittin

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • 11.0.1
  • Angular
  • .NetCore

If issue related with ABP Framework

  • What is ABP Framework version?

If issue is about UI

  • Which theme are you using?
  • What are the theme settings?

'CdkVirtualScrollViewport' is neither 'ComponentType' or 'DirectiveType'.

Error: 'CdkVirtualScrollViewport' is neither 'ComponentType' or 'DirectiveType'.

at extractDirectiveDef (:4200/vendor.js:112668:15)

at Array.map (<anonymous>)

at def.directiveDefs (:4200/vendor.js:112643:18)

at createTView (:4200/vendor.js:121444:13)

at getOrCreateTComponentView (:4200/vendor.js:121392:28)

at addComponentLogic (:4200/vendor.js:122163:19)

at instantiateAllDirectives (:4200/vendor.js:122004:13)

at createDirectivesInstances (:4200/vendor.js:121355:5)

at Module.ɵɵelementStart (:4200/vendor.js:126245:9)

at UserDelegationsModalComponent_Template (:4200/main.js:13598:69)

at resolvePromise (:4200/polyfills.js:5585:31)

at resolvePromise (:4200/polyfills.js:5539:17)

at :4200/polyfills.js:5651:17

at ZoneDelegate.invokeTask (:4200/polyfills.js:4778:31)

at Object.onInvokeTask (:4200/vendor.js:137160:33)

at ZoneDelegate.invokeTask (:4200/polyfills.js:4777:60)

at Zone.runTask (:4200/polyfills.js:4550:47)

at drainMicroTaskQueue (:4200/polyfills.js:4954:35)
Question

Hi

I am using Asp.Net Core & Angular 10.4 version.

I want to develope an application that collects data from the web so i want to user webbrowser control in my app. How can i do that ?

Reference which dll ?

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.

Hi,

I want to make a technical service software.

Every technical service will be a tenant. The end user will choose a suitable technical service from the public site and register for it. At another time, you can register at a different technical service.

I have 2 questions that I do not know how to make a logic about this.

1 - The end user has records in which technical service, how can he watch from the public site. 2 - Technical services will be listed on the public site and each technical service will determine in its own tenant which subjects it provides services and these will appear on the public site. 3- In which tenant will the end user open the account ?

Thanks

Muhittin

Question

Hi,

I have some questions about version management.

I created a repository at Github (private). And i copied all 8.5 version files. And i created 2 branch named dev and aspnetzero. i edited some common files at dev branch. I copied new 8.6 to aspnetzero branch and merge into dev branch. I resolved the conflicts on common files.

Everything is ok now. My code upgraded to 8.6.

When i want to upgrade my code to 8.7; i copied all 8.7 files to aspnetzero branch again with overwrite. I merged again aspnetzero branch into dev branch and this step overwrites all my developments on dev branch.

What is wrong ?

Muhittin

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
..
..
}
Showing 11 to 20 of 95 entries