Class ViewCollectionOptions
Options for the View Collection
Inheritance
System.Object
ViewCollectionOptions
Implements
System.IEquatable<ViewCollectionOptions>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: STAIExtensions.Abstractions.Collections
Assembly: STAIExtensions.Abstractions.dll
Syntax
public class ViewCollectionOptions : IEquatable<ViewCollectionOptions>
Constructors
ViewCollectionOptions(Nullable<Int32>, Nullable<Boolean>, Boolean, Nullable<TimeSpan>)
Options for the View Collection
Declaration
public ViewCollectionOptions(int? MaximumViews = 1000, bool? UseStrictViews = false, bool ViewsExpire = true, TimeSpan? SlidingExpirationTimeSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | MaximumViews | |
System.Nullable<System.Boolean> | UseStrictViews | |
System.Boolean | ViewsExpire | |
System.Nullable<TimeSpan> | SlidingExpirationTimeSpan |
Properties
MaximumViews
The total number of views allowed in the collection
Declaration
public int? MaximumViews { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
SlidingExpirationTimeSpan
Sets the maximum period of in-activeness before the view will be removed
Declaration
public TimeSpan? SlidingExpirationTimeSpan { get; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeSpan> |
UseStrictViews
Indicates if the Owner Id is required when interacting with the View Collection
Declaration
public bool? UseStrictViews { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
ViewsExpire
An value to indicate if Views should expire after a certain period of in-activeness
Declaration
public bool ViewsExpire { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>