Пример #1
0
        public Task <double> SyncEventTest([FromValue] double value)
        {
            OperatorEventArgs arg = new OperatorEventArgs(value);

            RaiseEvent(SyncOperatorEvent, arg);
            value = arg.Value;
            value++;
            return(Task.FromResult(value));
        }
Пример #2
0
 private void Domain_SyncOperator(IDomainExecutionContext context, OperatorEventArgs e)
 {
     e.Value += 2;
 }