Class ProductSourceUtils
Product Source utility class.
Namespace: Unity.Industrial.Forma.Core.AddressableSources
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.ConfiguratorRuntime", "Unity.Industrial.Configurator", null)]
public static class ProductSourceUtils
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 |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | |
| ArgumentNullException | Invalid type |