Interface IProductSource
Interface IProductSource
Namespace: Unity.Industrial.Forma.Core.AddressableSources
Syntax
public interface IProductSource
Properties
IsFormaManaged
Check if the product source is managed by Forma code.
Declaration
bool IsFormaManaged { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsLoaded
Gets or sets a value indicating whether this instance is loaded.
Declaration
bool IsLoaded { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsLoading
Gets or sets a value indicating whether this instance is loading.
Declaration
bool IsLoading { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Products
Gets the products.
Declaration
List<AssetProductReference> Products { get; }
Property Value
Type | Description |
---|---|
List<AssetProductReference> | The products. |
Methods
Load()
Loads this instance.
Declaration
IEnumerator Load()
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator. |
RemoveProduct(String, Boolean)
Removes the product.
Declaration
void RemoveProduct(string key, bool sendEvent = true)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key. |
Boolean | sendEvent | if set to |
Unload()
Unloads this instance.
Declaration
IEnumerator Unload()
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator. |
Events
onProductAdded
Occurs when [on product added].
Declaration
event ProductSource.ProductReferenceEvent onProductAdded
Event Type
Type | Description |
---|---|
ProductSource.ProductReferenceEvent |
onProductRemoved
Occurs when [on product removed].
Declaration
event ProductSource.ProductGuidEvent onProductRemoved
Event Type
Type | Description |
---|---|
ProductSource.ProductGuidEvent |