Remove this keyword
This commit is contained in:
@ -17,8 +17,8 @@ namespace Oqtane.Infrastructure
|
||||
|
||||
public InstallationManager(IHostApplicationLifetime HostApplicationLifetime, IWebHostEnvironment environment)
|
||||
{
|
||||
this._hostApplicationLifetime = HostApplicationLifetime;
|
||||
this._environment = environment;
|
||||
_hostApplicationLifetime = HostApplicationLifetime;
|
||||
_environment = environment;
|
||||
}
|
||||
|
||||
public void InstallPackages(string Folders, bool Restart)
|
||||
|
@ -19,7 +19,7 @@ namespace Oqtane.Infrastructure
|
||||
|
||||
public HostedServiceBase(IServiceScopeFactory ServiceScopeFactory)
|
||||
{
|
||||
this._serviceScopeFactory = ServiceScopeFactory;
|
||||
_serviceScopeFactory = ServiceScopeFactory;
|
||||
}
|
||||
|
||||
// abstract method must be overridden
|
||||
@ -34,7 +34,7 @@ namespace Oqtane.Infrastructure
|
||||
using (var scope = _serviceScopeFactory.CreateScope())
|
||||
{
|
||||
// get name of job
|
||||
string JobType = Utilities.GetFullTypeName(this.GetType().AssemblyQualifiedName);
|
||||
string JobType = Utilities.GetFullTypeName(GetType().AssemblyQualifiedName);
|
||||
|
||||
// load jobs and find current job
|
||||
IJobRepository Jobs = scope.ServiceProvider.GetRequiredService<IJobRepository>();
|
||||
@ -146,7 +146,7 @@ namespace Oqtane.Infrastructure
|
||||
// set IsExecuting to false in case this job was forcefully terminated previously
|
||||
using (var scope = _serviceScopeFactory.CreateScope())
|
||||
{
|
||||
string JobType = Utilities.GetFullTypeName(this.GetType().AssemblyQualifiedName);
|
||||
string JobType = Utilities.GetFullTypeName(GetType().AssemblyQualifiedName);
|
||||
IJobRepository Jobs = scope.ServiceProvider.GetRequiredService<IJobRepository>();
|
||||
Job Job = Jobs.GetJobs().Where(item => item.JobType == JobType).FirstOrDefault();
|
||||
if (Job != null)
|
||||
|
@ -20,11 +20,11 @@ namespace Oqtane.Infrastructure
|
||||
|
||||
public LogManager(ILogRepository Logs, ITenantResolver TenantResolver, IConfigurationRoot Config, IUserPermissions UserPermissions, IHttpContextAccessor Accessor)
|
||||
{
|
||||
this._logs = Logs;
|
||||
this._tenantResolver = TenantResolver;
|
||||
this._config = Config;
|
||||
this._userPermissions = UserPermissions;
|
||||
this._accessor = Accessor;
|
||||
_logs = Logs;
|
||||
_tenantResolver = TenantResolver;
|
||||
_config = Config;
|
||||
_userPermissions = UserPermissions;
|
||||
_accessor = Accessor;
|
||||
}
|
||||
|
||||
public void Log(LogLevel Level, object Class, LogFunction Function, string Message, params object[] Args)
|
||||
|
Reference in New Issue
Block a user