mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 01:25:44 -05:00
* Multi-thread server lookup to increase perf for multiple subscriptions * Use parallel execution for listsubscriptions - Also refactored parallel execution code to be a bit more generic
19 lines
422 B
C#
19 lines
422 B
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace Microsoft.SqlTools.Extensibility
|
|
{
|
|
|
|
public static class IEnumerableExt
|
|
{
|
|
public static IEnumerable<T> SingleItemAsEnumerable<T>(this T item)
|
|
{
|
|
yield return item;
|
|
}
|
|
}
|
|
}
|