Hi guys,
Truly sorry to ask this question, I know, IE11 is dead. Unfortunately, couple of our clients still have IE11 and they cannot use our software at the moment.
We are getting a script error in Angular vendor.js file probably caused by es6 syntax. It seems to be related to [email protected] package that reference d3-array@^2.4.0.
Is there anything we can do to fix this?
We use Angular/ASP.NET Core 8.6.0.0 version.
Thank you,
`// "./node_modules/d3-array/src/count.js":
/!**************************************!
! ./node_modules/d3-array/src/count.js !
**************************************/
/! exports provided: default /
// (function(module, webpack_exports, webpack_require) {
"use strict"; webpack_require.r(webpack_exports); /* harmony export (binding) */ webpack_require.d(webpack_exports, "default", function() { return count; }); function count(values, valueof) { let count = 0; if (valueof === undefined) { for (let value of values) { if (value != null && (value = +value) >= value) { ++count; } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { ++count; } } } return count; }`
Hi,
I'm trying to create an attribute class and I would like to get the ILogger but I'm getting a null reference, how can I inject the ILogger into an attribute class?
I've tried to register the class with an ITransientDependency and also in the PreInitialize() method:
IocManager.Register<SkipConcurrentExecutionAttribute>(DependencyLifeStyle.Transient);
Thank you,
/// <summary>
/// Attribute to skip a job execution if the same job is already running.
/// Mostly taken from: http://discuss.hangfire.io/t/job-reentrancy-avoidance-proposal/607
/// </summary>
public class SkipConcurrentExecutionAttribute : JobFilterAttribute, IServerFilter
{
public ILogger Logger { get; set; }
private readonly int _timeoutInSeconds = 1;
public SkipConcurrentExecutionAttribute()
{
Logger = NullLogger.Instance;
}
public SkipConcurrentExecutionAttribute(int timeoutInSeconds) : this()
{
if (timeoutInSeconds < 0) throw new ArgumentException("Timeout argument value should be greater that zero.");
_timeoutInSeconds = timeoutInSeconds;
}
public void OnPerforming(PerformingContext filterContext)
{
var resource = String.Format(
"{0}.{1}",
filterContext.Job.Type.FullName,
filterContext.Job.Method.Name);
var timeout = TimeSpan.FromSeconds(_timeoutInSeconds);
try
{
var distributedLock = filterContext.Connection.AcquireDistributedLock(resource, timeout);
filterContext.Items["DistributedLock"] = distributedLock;
}
catch (Exception)
{
filterContext.Canceled = true;
Logger.WarnFormat("Cancelling run for {0} job, id: {1} ", resource, filterContext.JobId); // Not logging anything...
}
}
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();
}
}
Hi,
I'm trying to debug Abp.* sources (Nuget packages) and it does not work. I can't get the source, the original location is still D:\Halil\GitHub\aspnetboilerplate\src\Abp\AbpBootstrapper.cs.
I've properly configured VS 2015 using:
Debugging <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Debugging">http://www.aspnetboilerplate.com/Pages/ ... /Debugging</a>
Thank you,
Hi,
I'm building a console app that will use my application services, core services and repositories to insert large amount of data into the database and Azure table storage. I would like to call the services directly, like a client/server app, and I don't want to do remote Web Api calls. I've looked at these samples, AbpWpfDemo and AbpEfConsoleApp but none of these are using authentication/authorization.
I would like to impersonate the host admin. I can't figure out how to do it.
Thank you,