AlgoTypeEventArgs
class cAlgo.API
DesktopCLICloud
Base structure that provides data for Algo registry events.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (AlgoRegistry.AlgoTypeChanged, AlgoRegistry.AlgoTypeDeleted, AlgoRegistry.AlgoTypeInstalled).
Definition
public abstract class AlgoTypeEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
AlgoRegistry.AlgoTypeInstalled += OnAlgoTypeEvent;
AlgoRegistry.AlgoTypeChanged += OnAlgoTypeEvent;
AlgoRegistry.AlgoTypeDeleted += OnAlgoTypeEvent;
}
private void OnAlgoTypeEvent(AlgoTypeEventArgs args)
{
Print("{0}: {1}", args.GetType().Name, args.AlgoTypeName);
}
def on_start(self):
api.AlgoRegistry.AlgoTypeInstalled += self.on_algo_type_event
api.AlgoRegistry.AlgoTypeChanged += self.on_algo_type_event
api.AlgoRegistry.AlgoTypeDeleted += self.on_algo_type_event
def on_algo_type_event(self, args):
api.Print(f"{type(args).__name__}: {args.AlgoTypeName}")
Properties
| Name | Description |
|---|---|
AlgoTypeNameDesktopCLICloudstring | Algo Type Name |