blob: b9f36bedc246a52cce5f886c047f74caf7b51a42 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2020 Robert Bosch GmbH
* Author: Constantin Ziesche (constantin.ziesche@bosch.com)
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
using BaSyx.API.Components;
using BaSyx.Components.Common;
using BaSyx.Utils.Settings.Types;
using Microsoft.Extensions.DependencyInjection;
namespace BaSyx.AAS.Server.Http
{
public class MultiAssetAdministrationShellHttpServer : ServerApplication
{
public MultiAssetAdministrationShellHttpServer(ServerSettings serverSettings = null, string[] webHostBuilderArgs = null)
: base(typeof(MultiStartup), serverSettings ?? ServerSettings.LoadSettings(), webHostBuilderArgs)
{ }
public void SetServiceProvider(IAssetAdministrationShellAggregatorServiceProvider aggregatorServiceProvider)
{
WebHostBuilder.ConfigureServices(services =>
{
services.AddSingleton<IAssetAdministrationShellAggregatorServiceProvider>(aggregatorServiceProvider);
});
}
}
}