DeadByDaylightBackup.Utility/Trigger/TriggerLauncher.cs
/// <summary>
/// Trigger on the Update of a object
/// </summary>
/// <param name="input">Created object</param>
Trigger on the Update of a object
Trigger on the Update of a object
public void TriggerUpdateEvent(T input)
        {
            var list = _triggerHandler.GetTriggerList().Where(x => x is IUpdateTrigger<T>)
                .Select(x => x as IUpdateTrigger<T>).ToArray();
            foreach (var trigger in list)
            {
                try
                {
                    trigger.UpdateTrigger(input);
                }
                catch (Exception ex)
                {
                    _logger.Warn(ex, "Failed to trigger update for: {0}", trigger.ToString());
                }
            }
        }
public void TriggerUpdateEvent ( T input ) { var list = _triggerHandler . GetTriggerList ( ) . Where ( x => x is IUpdateTrigger < T > ) . Select ( x => x as IUpdateTrigger < T > ) . ToArray ( ) ; foreach ( var trigger in list ) { try { trigger . UpdateTrigger ( input ) ; } catch ( Exception ex ) { _logger . Warn ( ex , " " , trigger . ToString ( ) ) ; } } }
Trigger on the Update of a object
Trigger on the Update of a object
input
T
None