mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
* Add linting for copyright and unused usings * Add one more + comment * Enforce in build and fix errors * Fix build
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
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;
|
|
using System.Threading;
|
|
using Microsoft.Kusto.ServiceLayer.Connection;
|
|
|
|
namespace Microsoft.Kusto.ServiceLayer.LanguageServices
|
|
{
|
|
public interface IConnectedBindingQueue
|
|
{
|
|
event BindingQueue<ConnectedBindingContext>.UnhandledExceptionDelegate OnUnhandledException;
|
|
|
|
string AddConnectionContext(ConnectionInfo connInfo, bool needMetadata, string featureName = null, bool overwrite = false);
|
|
void Dispose();
|
|
bool IsBindingContextConnected(string key);
|
|
void RemoveBindingContext(ConnectionInfo connInfo);
|
|
|
|
QueueItem QueueBindingOperation(
|
|
string key,
|
|
Func<IBindingContext, CancellationToken, object> bindOperation,
|
|
Func<IBindingContext, object> timeoutOperation = null,
|
|
Func<Exception, object> errorHandler = null,
|
|
int? bindingTimeout = null,
|
|
int? waitForLockTimeout = null);
|
|
}
|
|
} |