public void BindTo(IEnumerable <IAssetAdministrationShell> assetAdministrationShells) { foreach (var assetAdministrationShell in assetAdministrationShells) { RegisterAssetAdministrationShellServiceProvider(assetAdministrationShell.IdShort, assetAdministrationShell.CreateServiceProvider(true)); } ServiceDescriptor = ServiceDescriptor ?? new AssetAdministrationShellRepositoryDescriptor(assetAdministrationShells, null); }
public AssetAdministrationShellRepositoryServices(IAssetAdministrationShellRepositoryServiceProvider assetAdministrationShellRepositoryServiceProvider) { repository = assetAdministrationShellRepositoryServiceProvider; ServiceDescriptor = assetAdministrationShellRepositoryServiceProvider.ServiceDescriptor; }
public AssetAdministrationShellRepositoryServiceProvider(IAssetAdministrationShellRepositoryDescriptor descriptor) : this() { ServiceDescriptor = descriptor; }