mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-06 01:25:43 -05:00
Separating Migration into its own project (#1828)
* Moving Migration service to its own project * Adding loc files to the project * Adding Migration to build * Adding Migration Integration Tests * Trying loops * Fixing params * Fixing indent * Cleaning up yaml * Getting command line arg for auto flush log * Adding tde service
This commit is contained in:
@@ -73,7 +73,7 @@ namespace Microsoft.SqlTools.Extensibility
|
||||
// another one during initialization, it will be able to safely do so
|
||||
foreach (IHostedService service in this.serviceProvider.GetServices<IHostedService>())
|
||||
{
|
||||
if(IsServiceInitialized(service))
|
||||
if (IsServiceInitialized(service))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -83,7 +83,7 @@ namespace Microsoft.SqlTools.Extensibility
|
||||
|
||||
foreach (IHostedService service in this.serviceProvider.GetServices<IHostedService>())
|
||||
{
|
||||
if(IsServiceInitialized(service))
|
||||
if (IsServiceInitialized(service))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -199,14 +199,17 @@ namespace Microsoft.SqlTools.Extensibility
|
||||
protected void RegisterService(IHostedService service)
|
||||
{
|
||||
this.serviceProvider.RegisterSingleService(service.GetType(), service);
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void InitializeService(IHostedService service)
|
||||
{
|
||||
service.InitializeService(this);
|
||||
this.initializedServices.Add(service);
|
||||
this.options.InitializeServiceCallback(this, service);
|
||||
if (this.options.InitializeServiceCallback != null)
|
||||
{
|
||||
this.options.InitializeServiceCallback(this, service);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -284,7 +287,7 @@ namespace Microsoft.SqlTools.Extensibility
|
||||
public int ShutdownTimeoutInSeconds { get; set; } = 120;
|
||||
|
||||
public delegate void InitializeService(ExtensionServiceHost serviceHost, IHostedService service);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Service initialization callback. The caller must define this callback to initialize the service.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user