mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Upgrade solution to .NET 6.0.9 (Build with .NET SDK v6.0.401) (#1692)
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.SqlServer.Management.Smo.Agent;
|
||||
using Microsoft.SqlTools.ServiceLayer.Agent.Contracts;
|
||||
using System.Linq;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
{
|
||||
@@ -261,7 +262,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
|
||||
// Add steps to the job if any
|
||||
var jobSteps = new List<AgentJobStep>();
|
||||
foreach (LogSourceJobHistory.LogEntryJobHistory subEntry in entry.SubEntries)
|
||||
foreach (LogSourceJobHistory.LogEntryJobHistory subEntry in entry.SubEntries.Cast<LogSourceJobHistory.LogEntryJobHistory>())
|
||||
{
|
||||
if (steps.Contains(subEntry.StepName))
|
||||
{
|
||||
@@ -303,7 +304,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
|
||||
// Add steps to the job if any
|
||||
var jobSteps = new List<AgentJobStep>();
|
||||
foreach (LogSourceJobHistory.LogEntryJobHistory subEntry in entry.SubEntries)
|
||||
foreach (LogSourceJobHistory.LogEntryJobHistory subEntry in entry.SubEntries.Cast<LogSourceJobHistory.LogEntryJobHistory>())
|
||||
{
|
||||
if (steps.Contains(subEntry.StepName))
|
||||
{
|
||||
|
||||
@@ -416,10 +416,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
{
|
||||
e.Source = sourceName;
|
||||
|
||||
if (m_exceptionList == null)
|
||||
{
|
||||
m_exceptionList = new List<Exception>();
|
||||
}
|
||||
m_exceptionList ??= new List<Exception>();
|
||||
m_exceptionList.Add(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user