Class ProductSourceUtils
Product Source utility class.
Namespace: Unity.Industrial.Forma.Core.AddressableSources
Syntax
public static class ProductSourceUtils : object
Methods
FindAndDestroyFormaManagedProductSource<T>(Configurator)
Find and delete the product source of type T (if exist)
Declaration
public static void FindAndDestroyFormaManagedProductSource<T>(Configurator configurator)
where T : IProductSource
Parameters
Type | Name | Description |
---|---|---|
Configurator | configurator |
Type Parameters
Name | Description |
---|---|
T |
FindOrCreateFormaManagedProductSource<T>(Configurator)
Return the firstOrDefault IProductSource or type
Declaration
public static T FindOrCreateFormaManagedProductSource<T>(Configurator configurator)
where T : IProductSource
Parameters
Type | Name | Description |
---|---|---|
Configurator | configurator |
Returns
Type | Description |
---|---|
T | IProductSource found |
Type Parameters
Name | Description |
---|---|
T | IProductSource type |