Beispiel #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ObservableReadOnlyCompositeList{T}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context to use, if any.</param>
 public ObservableReadOnlyCompositeList(SynchronizationContext context)
     : base(
         new MultiListListAdapter <T>(),
         context)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 /// <param name="capacity">The initial capacity of the dictionary.</param>
 public ConcurrentObservableDictionary(
     GlobalThreading.SynchronizationContext context,
     int capacity)
     : base(
         context,
         capacity)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="dictionary">A dictionary of items to copy from.</param>
 /// <param name="comparer">A comparer object to use for equality comparison.</param>
 public ConcurrentObservableDictionary(
     IDictionary <TKey, TValue> dictionary,
     IEqualityComparer <TKey> comparer)
     : base(
         dictionary,
         comparer)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 /// <param name="equalityComparer">A comparer object to use for equality comparison.</param>
 public ConcurrentObservableDictionary(
     GlobalThreading.SynchronizationContext context,
     IEqualityComparer <TKey> equalityComparer)
     : base(
         context,
         equalityComparer)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 /// <param name="dictionary">A dictionary of items to copy from.</param>
 public ConcurrentObservableDictionary(
     GlobalThreading.SynchronizationContext context,
     IDictionary <TKey, TValue> dictionary)
     : base(
         context,
         dictionary)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableDictionary(
     GlobalThreading.SynchronizationContext context,
     bool suppressUndoable)
     : base(
         context,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="equalityComparer">A comparer object to use for equality comparison.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableDictionary(
     IEqualityComparer <TKey> equalityComparer,
     bool suppressUndoable)
     : base(
         equalityComparer,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="dictionary">A dictionary of items to copy from.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableDictionary(
     IDictionary <TKey, TValue> dictionary,
     bool suppressUndoable)
     : base(
         dictionary,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
Beispiel #9
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableList{T}" /> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="context">The context.</param>
 public ConcurrentObservableList(
     IEnumerable <T> source,
     GlobalThreading.SynchronizationContext context)
     : base(
         source,
         context)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="capacity">The initial capacity of the dictionary.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableDictionary(
     int capacity,
     bool suppressUndoable)
     : base(
         capacity,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="capacity">The initial capacity of the dictionary.</param>
 /// <param name="equalityComparer">A comparer object to use for equality comparison.</param>
 public ConcurrentObservableDictionary(
     int capacity,
     IEqualityComparer <TKey> equalityComparer)
     : base(
         capacity,
         equalityComparer)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
Beispiel #12
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableList{T}" /> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableList(
     IEnumerable <T> source,
     bool suppressUndoable)
     : base(
         source,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableQueue{T}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 /// <param name="collection">A collection of items to copy from.</param>
 public ConcurrentObservableQueue(
     GlobalThreading.SynchronizationContext context,
     IEnumerable <T> collection)
     : base(
         context,
         collection)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableQueue{T}" /> class.
 /// </summary>
 /// <param name="collection">A collection of items to copy from.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableQueue(
     IEnumerable <T> collection,
     bool suppressUndoable)
     : base(
         collection,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
Beispiel #15
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableStack{T}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 /// <param name="collection">A collection of items to copy into the stack.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableStack(
     GlobalThreading.SynchronizationContext context,
     IEnumerable <T> collection,
     bool suppressUndoable)
     : base(
         context,
         collection,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 /// <param name="dictionary">A dictionary of items to copy from.</param>
 /// <param name="comparer">A comparer object to use for equality comparison.</param>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableDictionary(
     GlobalThreading.SynchronizationContext context,
     IDictionary <TKey, TValue> dictionary,
     IEqualityComparer <TKey> comparer,
     bool suppressUndoable)
     : base(
         context,
         dictionary,
         comparer,
         suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 public ConcurrentObservableDictionary()
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableMasterSlaveCollection{T}" /> class.
 /// </summary>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableMasterSlaveCollection(bool suppressUndoable)
     : base(suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableQueue{T}" /> class.
 /// </summary>
 /// <param name="suppressUndoable">If set to <see langword="true" />, suppresses undoable capabilities of this collection.</param>
 public ConcurrentObservableQueue(bool suppressUndoable)
     : base(suppressUndoable)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableDictionary{TKey, TValue}" /> class.
 /// </summary>
 /// <param name="capacity">The initial capacity of the dictionary.</param>
 public ConcurrentObservableDictionary(int capacity)
     : base(capacity)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
Beispiel #21
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableStack{T}" /> class.
 /// </summary>
 /// <param name="context">The synchronization context top use when posting observable messages.</param>
 public ConcurrentObservableStack(GlobalThreading.SynchronizationContext context)
     : base(context)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 internal void OnDeserializingMethod(StreamingContext context) => GlobalThreading.Interlocked.Exchange(
     ref this.locker,
     EnvironmentSettings.GenerateDefaultLocker());
Beispiel #23
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ObservableReadOnlyCompositeList{T}" /> class.
 /// </summary>
 public ObservableReadOnlyCompositeList()
     : base(new MultiListListAdapter <T>())
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableMasterSlaveCollection{T}" /> class.
 /// </summary>
 public ConcurrentObservableMasterSlaveCollection()
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }
Beispiel #25
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConcurrentObservableStack{T}" /> class.
 /// </summary>
 /// <param name="collection">A collection of items to copy into the stack.</param>
 public ConcurrentObservableStack(IEnumerable <T> collection)
     : base(collection)
 {
     this.locker = EnvironmentSettings.GenerateDefaultLocker();
 }