Пример #1
0
        internal GenericChain(T payload, Configuration configuration)
        {
            _dataCargo = new DataCargo <T>
            {
                Payload = GetPayloadOrInstance(payload)
            };

            _configuration = configuration ?? new Configuration();

            _chain = new List <LinkBase <T> >();
        }
Пример #2
0
 public override void OnExecute(DataCargo <T> data) => _action.Invoke(data);
Пример #3
0
 public abstract void OnExecute(DataCargo <T> data);