public Task OnPreRecreateCollectionAsync(PreCollectionRecreateEvent @event, CancellationToken cancellationToken) { try { AddEvent(@event, this); return(Task.CompletedTask); } catch (System.Exception ex) { return(Task.FromException <object>(ex)); } }
private void PreRecreate() { IPreCollectionRecreateEventListener[] preListeners = Session.Listeners.PreCollectionRecreateEventListeners; if (preListeners.Length > 0) { PreCollectionRecreateEvent preEvent = new PreCollectionRecreateEvent(Persister, Collection, (IEventSource)Session); for (int i = 0; i < preListeners.Length; i++) { preListeners[i].OnPreRecreateCollection(preEvent); } } }
private async Task PreRecreateAsync(CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); IPreCollectionRecreateEventListener[] preListeners = Session.Listeners.PreCollectionRecreateEventListeners; if (preListeners.Length > 0) { PreCollectionRecreateEvent preEvent = new PreCollectionRecreateEvent(Persister, Collection, (IEventSource)Session); for (int i = 0; i < preListeners.Length; i++) { await(preListeners[i].OnPreRecreateCollectionAsync(preEvent, cancellationToken)).ConfigureAwait(false); } } }
public void OnPreRecreateCollection(PreCollectionRecreateEvent @event) { AddEvent(@event, this); }
public void OnPreRecreateCollection(PreCollectionRecreateEvent e) { OnCollection(e); }
/// <summary> /// /// </summary> /// <param name="evt"></param> public void OnPreRecreateCollection(PreCollectionRecreateEvent evt) { }
public void OnPreRecreateCollection(PreCollectionRecreateEvent @event) { log.Debug("OnPreRecreateCollection :" + @event); }