public void RegisterAssetAdministrationShellServiceProvider(string id, IAssetAdministrationShellServiceProvider assetAdministrationShellServiceProvider) { if (!AssetAdministrationShellServiceProviders.ContainsKey(id)) { AssetAdministrationShellServiceProviders.Add(id, assetAdministrationShellServiceProvider); } }
public void UnregisterAssetAdministrationShellServiceProvider(string id) { if (!AssetAdministrationShellServiceProviders.ContainsKey(id)) { AssetAdministrationShellServiceProviders.Remove(id); } }
public IAssetAdministrationShellServiceProvider GetAssetAdministrationShellServiceProvider(string id) { if (AssetAdministrationShellServiceProviders.TryGetValue(id, out IAssetAdministrationShellServiceProvider assetAdministrationShellServiceProvider)) { return(assetAdministrationShellServiceProvider); } else { return(null); } }