/// <summary> /// Create a new instance of this class /// </summary> public DocumentSessionListeners() { ConversionListeners = new IDocumentConversionListener[0]; QueryListeners = new IDocumentQueryListener[0]; StoreListeners = new IDocumentStoreListener[0]; DeleteListeners = new IDocumentDeleteListener[0]; ConflictListeners = new IDocumentConflictListener[0]; }
/// <summary> /// Create a new instance of this class /// </summary> public DocumentSessionListeners() { ConversionListeners = new IDocumentConversionListener[0]; QueryListeners = new IDocumentQueryListener[0]; StoreListeners = new IDocumentStoreListener[0]; DeleteListeners = new IDocumentDeleteListener[0]; ConflictListeners = new IDocumentConflictListener[0]; }
/// <summary> /// Registers the conflict listener. /// </summary> /// <param name="conflictListener">The conflict listener.</param> public DocumentStoreBase RegisterListener(IDocumentConflictListener conflictListener) { return(server.DocumentStore.RegisterListener(conflictListener)); }
/// <summary> /// Registers the conflict listener. /// </summary> /// <param name="conflictListener">The conflict listener.</param> public DocumentStoreBase RegisterListener(IDocumentConflictListener conflictListener) { listeners.ConflictListeners = listeners.ConflictListeners.Concat(new[] { conflictListener }).ToArray(); return this; }
/// <summary> /// Registers the conflict listener. /// </summary> /// <param name="conflictListener">The conflict listener.</param> public DocumentStoreBase RegisterListener(IDocumentConflictListener conflictListener) { listeners.ConflictListeners = listeners.ConflictListeners.Concat(new[] { conflictListener }).ToArray(); return(this); }
public IDocumentStore RegisterListener(IDocumentConflictListener listener) { Listeners.RegisterListener(listener); return this; }
/// <summary> /// Registers the conflict listener. /// </summary> /// <param name="conflictListener">The conflict listener.</param> public DocumentStoreBase RegisterListener(IDocumentConflictListener conflictListener) { return server.DocumentStore.RegisterListener(conflictListener); }
public IDocumentStore RegisterListener(IDocumentConflictListener listener) { Listeners.RegisterListener(listener); return(this); }
public void RegisterListener(IDocumentConflictListener conversionListener) { ConflictListeners = ConflictListeners.Concat(new[] { conversionListener }).ToArray(); }
public void RegisterListener(IDocumentConflictListener conversionListener) { ConflictListeners = ConflictListeners.Concat(new[] { conversionListener }).ToArray(); }