Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Wisej.Core.BrowserStorage
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Represents the browser's storage objects.
Removes all the values from the browser's storage.
Returns all the keys in the browser's storage.
Parameter | Type | Description |
---|---|---|
Asynchronously returns all the keys in the browser's storage.
Returns: Task<String[]>. An awaitable Task that represents the asynchronous operation.
Returns the value stored in the browser's storage associated with the specified key .
This method returns the value asynchronously because it waits for the browser to respond.
Throws:
ArgumentNullException The key is null or empty, or callback is null.
Asynchronously returns the value stored in the browser's storage associated with the specified key .
Returns: Task<T>. An awaitable Task that represents the asynchronous operation.
Removes the value associated with the key from the browser's storage.
Stores the specified value in the browser's storage.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
T
Type of the value to retrieve.
key
Key associated with the value to retrieve.
callback
Callback method that receives the value asynchronously.
T
Type of the value to retrieve.
key
Kay associated with the value to retrieve.
key
Kay associate with the value to remove.
T
Type of the value to store.
key
Key associated with the value.
value
Value to store in the browser's storage.
Represents the browser's localStorage. Use this class through the Browser instance.
Represents the browser's localStorage. Use this class through the Browser instance.
Represents the browser's cookie storage. Use this class through the Browser instance.
Wisej.Core.CookieStorage
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Represents the browser's cookie storage. Use this class through the Browser instance.
Wisej.Core.HealthCheck
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Handler for healthcheck requests sent by load balancers.
Configure the load balancer to use "http://your-server/healthcheck.wx" as the health check URL. You can modify the default healthcheck value either by placing a Healthcheck.json file in the root of your project, or programmatically assigning the values to Wisej.Core.HealthCheck properties. See load-balancing.
Boolean: Returns or sets whether the load balancing features are enabled.
Int32: Maximum CPU load in percentage: Default: 100; 0 = unlimited.
Int32: Maximum percentage of allocated memory. Default: 70; 0 = unlimited.
Int32: Maximum number of active sessions: Default: 0; 0 = unlimited.
String: Returns or sets the response header to return to the browser.
Can be used in conjunction with the ReturnCode set to 200 (OK) and the value of the return header set to "Refresh: 0; Set-Cookie: AffinityCookie=" to cause the client browser to load the affinity cookie and reload the page to (hopefully) reach another server.
Int32: Value for the Retry-After header in minutes. Default: 10.
Int32: Http return code to signal that this server is not available. Default: 503.
String: Redirection Url in alternative to the error return code. Default: null.
callback
Callback method that receives each key name asynchronously.
Wisej.Core.HttpContext
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Encapsulates all HTTP-specific information about an individual HTTP request.
HttpCookieCollection: Returns a collection of HttpCookie values sent by the client.
HttpRequest: Returns the HttpRequest object for the current HTTP request.
HttpResponse: Returns the HttpResponse object for the current HTTP response.
Wisej.Core.DynamicObject
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Custom fast implementation of a dynamic object that can handle the JSON serialization and deserialization. This class implements IDynamicMetaObjectProvider allowing the DLR to compile the dynamic member access on the fly. We could have derived from System.Dynamic.Dynamic but the implementation in the .NET framework uses exceptions to manage custom properties.
Default constructor.
Optional constructor. Takes the initial capacity to allocate the specified number of slots in the store.
Name | Type | Description |
---|---|---|
Creates a new DynamicObject cloned from the source object.
Name | Type | Description |
---|---|---|
Int32: Returns the number of fields.
Boolean: Returns true if the dynamic doesn't object contains any field.
Object: Returns or sets the value of the specified member.
Wipes out the object.
Wipes out the object but it keeps the capacity.
Clones the members of the dynamic object.
Returns: DynamicObject. The cloned instance.
This is a shallow copy. Reference members are copied by reference.
Returns whether the object contains the specified field.
Returns: Boolean. True if the field name exists in the store.
Copies all the values from the source object.
Deletes the field.
Returns: DynamicObject. Itself, this call can be chained.
Returns a new ComponentConfiguration object containing only the values that don't exist in the ComponentConfiguration object passed to the method.
Returns: Object. Returns null if there are no differences.
Returns an enumerator that iterates through the collection.
Returns: IEnumerator<Member>. A IEnumerator
Fires the PropertyChanged event.
Sorts the field by their name.
Serializes the object to a JSON string.
Returns: String. A String representing the serialized object.
Serializes the object to a JSON string.
Returns: String. A String representing the serialized object.
Removes the excess entries in the inner array and in all child fields, recursively.
Returns: Boolean.
Wisej.Core.FileSystemProvider
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Default implementation of IFileSystemProvider. Provides access to the server's file system.
Initializes a blank instance of FileSystemProvider.
Creates a new instance of the FileSystemProvider class with the specified root and name . The root is added in front of all path arguments passed to all methods in this class.
Name | Type | Description |
---|---|---|
The root path is also the current directory path.
Image: Returns or sets the icon that represents the file system. (Default: null
)
String: Returns or sets the icon name or URL that represents the file system. (Default: "resource.wx/icon-storage.svg"
)
String: Returns or sets the name of this root. This is the name that should be shown to the user.
String: Returns or sets the root path for the file system. All file system operations in the implementation class are expected to be limited to the root.
Checks whether the specified path starts with the Name of this file system provider.
Returns: Boolean. True if the specified path starts with the name of this file system provider.
Creates the specified directory and sub-directories.
Deletes the specified directory and, optionally, sub-directories.
Deletes the specified file.
Returns whether the specified file or directory exists.
Returns: Boolean. True of the file or directory exists.
Returns the FileAttributes for the specified path .
Returns: FileAttributes. An instance of FileAttributes with the relevant flags set.
Returns the file's creation time.
Returns: DateTime. A DateTime representing the timestamp of the file creation.
Returns a list of directory paths that match the pattern and search options in the specified path.
Returns: String[]. A Array containing the full path of the directories that match the search pattern and search options.
Returns a list of file paths that match the pattern and search options in the specified path.
Returns: String[]. A Array containing the full path of the files that match the search pattern and search options.
Returns the size of the file.
Returns: Int64.
Returns the last write timestamp for the specified file.
Returns: DateTime. A DateTime representing the timestamp of the last time the file was written.
Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.
Returns: String. The physical path for the IFileSystemProvider implementation.
Opens the specified file for reading or writing.
Returns: Stream. A Stream that can be used to read or write the content of the file.
Renames the specified directory.
Renames the specified file.
Wisej.Core.HttpCookie
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Represents a cookie value in the client browser.
Creates and names a new HttpCookie.
Name | Type | Description |
---|---|---|
Creates, names, and assigned a new value to a new HttpCookie.
Name | Type | Description |
---|---|---|
String: Restricts domain cookie is to be used with.
DateTime: Expiration time for the cookie (in minutes).
Boolean: Return whether the cookie has sub-keys.
Boolean: Indicates whether the cookie should have HttpOnly attribute
String: Returns or sets a value in a cookie with multple values.
String: Returns or sets the name of the cookie.
String: Returns or sets the URL prefix to transmit with the cookie.
SameSiteMode: Returns or sets the SameSiteMode for the cookie.
Boolean: Indicates whether the cookie should be transmitted only over HTTPS.
String: Returns or sets the cookie value.
NameValueCollection: Returns an individual key:value pairs within a single cookie object with multple values.
Wisej.Core.HttpPostedFile
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Provides access to individual files that have been uploaded by a client.
: Returns the size of an uploaded file, in bytes.
: Returns the MIME content type of a file sent by a client.
: Return the fully qualified name of the file on the client.
: Returns a object that points to an uploaded file to prepare for reading the contents of the file.
Saves the contents of an uploaded file.
Wisej.Core.HttpFileCollection
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Provides access to and organizes files uploaded by a client.
: Returns a string array containing the keys (names) of all members in the file collection.
: Returns the number of files in the collection.
: Returns the at the index.
: Returns the identified by the specified name .
Returns the name of the file at the specified index .
Returns all files that match the specified name.
Wisej.Core.HttpCookieCollection
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Encapsulates the cookies sent in an HTTP request.
: Returns all the keys (cookie names) in the cookie collection.
: Returns the number of cookies in the collection.
: Returns the cookie with the specified name from the cookie collection.
: Returns the cookie with the specified numerical index from the cookie collection.
Adds the specified cookie to the cookie collection.
Clears all cookies from the cookie collection.
Returns the cookie with the specified name from the cookie collection.
Returns the key (name) of the cookie at the specified numerical index.
Removes the cookie with the specified name from the collection.
Updates the value of an existing cookie in a cookie collection.
Wisej.Core.HttpRequest
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Encapsulates HTTP-request information for an ASP.NET operation.
Constructs an new instance initialized from the original .
Name | Type | Description |
---|
: Returns the length, in bytes, of content sent by the client.
: Returns the MIME content type of the incoming request.
Wisej.Core.HttpResponse
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Encapsulates HTTP-response information from an ASP.NET operation.
: Returns or set the HTTP MIME type of the output stream.
: Returns the current .
: Enables binary output to the outgoing HTTP content body.
: Returns or sets the HTTP status code returned to the client.
Adds the HTTP header to the response.
Writes an array of bytes to the HTTP output stream.
Writes an array of bytes to the HTTP output stream.
Sends all currently buffered output to the client.
Throws:
Returns a redirect response (HTTP 301 or HTTP 302) to the client.
Writes the specified filePath to the current HTTP response stream without buffering it in memory.
Throws:
Writes the specified part of a file directly to an HTTP response output stream without buffering it in memory.
Throws:
Writes an image to the HTTP response stream.
Throws:
Copies a stream to the HTTP response stream.
Writes a string to the current HTTP response string.
Writes an object to the HTTP response stream.
Name | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
Parameter | Type | Description |
---|
Returns the at the specified index.
Parameter | Type | Description |
---|
Returns: .
Returns the with the specified name.
Parameter | Type | Description |
---|
Returns: .
Parameter | Type | Description |
---|
Returns: .
Parameter | Type | Description |
---|
Returns: . Returns all files that match the specified name.
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Returns: .
Returns the at the specified index.
Parameter | Type | Description |
---|
Returns: .
Parameter | Type | Description |
---|
Returns: .
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
: Returns the current .
: Returns the collection of uploaded by the client.
: Returns the collection of form values posted with the HTTP request.
: Returns a collection of HTTP headers.
: Returns the contents of the incoming HTTP entity body.
: Returns whether the request is from the local computer.
: Returns the specified value from the or collections.
: Returns the virtual path of the current request.
: Returns the collection of arguments specified in the application URL.
: Returns the HTTP data transfer method (GET or POST) used by the client.
: Returns the collection of .
: Returns the number of bytes in the current .
: Returns the URL of the current request.
: Returns information about the URL of the client's previous request that linked to the current URL.
: Returns the raw user agent string of the client browser.
: Returns the IP host address of the remote client.
: Returns the DNS name of the remote client.
: Returns a sorted string array of client language preferences.
: Returns or sets the HTTP status string to return to the client.
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
An I/O error occurs.
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
The filename parameter is null.
Parameter | Type | Description |
---|
The filename parameter is null.
The out-of-process worker request is not supported.- or -The response is not using an object.
The offset parameter is less than zero or greater than the file size.- or -The length parameter is less than -1 or greater than the value of the offset parameter plus the file size.
Parameter | Type | Description |
---|
image is null.
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
IsServerAvailable
Custom function placeholder assignable by the application to determine when a server should return that it's not available to receive more sessions.
keepCapacity
name
Name of the field to check.
source
Object to copy members from.
name
Name of the field to remove.
original
previous values to diff against.
name
Name of the property that has changed in the dynamic object.
formatted
True to format the output JSON string.
options
A combination of WisejSerializerOptions flags.
name
value
path
Path of the file to check.
path
Path of the directory to create.
path
Path of the directory to delete.
recursive
Indicates whether to delete sub directories.
path
Path of the file to delete.
path
Path of the file or directory to check.
path
File path for which to retrieve the FileAttributes.
path
Path of the file to query.
path
Path to search into.
pattern
Wild card pattern to match.
searchOption
One of the SearchOption options.
path
Path to search into.
pattern
Wild card pattern to match.
searchOption
One of the SearchOption options.
path
Path of the file to query.
path
Path of the file to query.
path
Virtual path to map to the corresponding physical path.
path
The path of the file to open.
mode
Specified if the file should be opened, created, overwritten or truncated.
access
Specified if the stream should be opened for reading or writing.
path
Path of the directory to rename.
newName
The new directory name.
path
Path of the file to rename.
newName
The new file name.
Abstracts access to the file system. Implementations of this interface are used by the file dialogs and other components that need to interact with the file system. Wisej provides the built-in default implementation for the standard disk-based file system and a number of alternative implementations in the Wisej extensions, such as: Amazon S3, Google Drive, and Microsoft OneDrive.
Wisej.Core.SessionStorage
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Represents the browser's localStorage. Use this class through the Browser instance.
Wisej.Core.LocalStorage
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Represents the browser's localStorage. Use this class through the Browser instance.
filename | The name of the file. |
index | Index of the file to retrieve. |
name | The name of the object to be returned from a file collection. |
index | Index of the file in the collection. |
name | The name to match. |
cookie |
name | Name of the cookie to retrieve. |
index | Index of the cookie to retrieve. |
index |
name |
cookie |
name | Name of the HTTP header. |
value | Value of the HTTP header. |
buffer | The bytes to write to the output stream. |
buffer | The bytes to write to the output stream. |
index | The position in the byte array where writing starts. |
count | The number of bytes to write, beginning at index. |
location | The URL to redirect the client to. This must be properly encoded for use in HTTP headers where only ASCII characters are allowed. |
permanent | True if the redirect is permanent (301), otherwise false (302). |
filePath | The path to the file to writ to the output stream. |
filePath | The name of the file to write to the HTTP output. |
offset | The position in the file to begin to write to the HTTP output. |
length | The number of bytes to be transmitted. |
image |
format |
stream |
value | The string to write to the response stream. |
obj | The object to write. |
capacity
Initial number of store entries.
source
Source object to copy the fields from.
root
The root path of this file system.
name
The name of this file system.
name
Name of the cookie.
name
Name of the cookie.
value
Value to assign to the cookie.
Lax | Indicates the client should send the cookie with "same-site" requests, and with "cross-site" top-level navigations. |
None | Indicates the client should disable same-site restrictions. When using this value, the cookie must also have the property set to true. |
Strict | Indicates the client should only send the cookie with "same-site" requests. |
Returns or sets the for the cookie. |
context |
request |
Wisej.Core.IEventFilter
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Defines the event filter interface to use with the AddEventFilter method.
Process an event before it is dispatched.
Parameter | Type | Description |
---|---|---|
Returns: Boolean. true to stop the event from being dispatched; false to allow the event to continue to the next filter or control.
Wisej.Core.MimeTypes
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Maps document extensions to content MIME types.
Returns the MIME mapping for the specified file name.
Parameter | Type | Description |
---|---|---|
Returns: String.
Returns if the file extension corresponds to a known mime type.
Parameter | Type | Description |
---|---|---|
Returns: Boolean.
Adds or changes the mime type for the specified file extension.
Wisej.Core.IFileSystemProvider
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Abstracts access to the file system. Implementations of this interface are used by the file dialogs and other components that need to interact with the file system. Wisej provides the built-in default implementation for the standard disk-based file system and a number of alternative implementations in the Wisej extensions, such as: Amazon S3, Google Drive, and Microsoft OneDrive.
Image: Returns or sets the icon that represents the file system.
String: Returns or sets the icon name or URL that represents the file system.
String: Returns or sets the name of this root. This is the name that should be shown to the user.
String: Returns or sets the root path for the file system. All file system operations in the implementation class are expected to be limited to the root.
Checks whether the specified path starts with the Name of this file system provider.
Returns: Boolean. True if the specified path starts with the name of this file system provider.
Creates the specified directory and sub-directories.
Deletes the specified directory and, optionally, sub-directories.
Deletes the specified file.
Returns whether the specified file or directory exists.
Returns: Boolean. True of the file or directory exists.
Returns the FileAttributes for the specified path .
Returns: FileAttributes. An instance of FileAttributes with the relevant flags set.
Returns the file's creation time.
Returns: DateTime. A DateTime representing the timestamp of the file creation.
Returns a list of directory paths that match the pattern and search options in the specified path.
Returns: String[]. A Array containing the full path of the directories that match the search pattern and search options.
Returns a list of file paths that match the pattern and search options in the specified path.
Returns: String[]. A Array containing the full path of the files that match the search pattern and search options.
Returns the size of the file.
Returns: Int64. The size of the file in bytes.
Returns the last write timestamp for the specified file.
Returns: DateTime. A DateTime representing the timestamp of the last time the file was written.
Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.
Returns: String. The physical path for the IFileSystemProvider implementation.
Opens the specified file for reading or writing.
Returns: Stream. A Stream that can be used to read or write the content of the file.
Renames the specified directory.
Renames the specified file.
Wisej.Core.WebMethodAttribute
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Indicates that the method can be called from the browser using JavaScript.
You can add this attribute to static methods in your Wisej application Program class and to instance methods in top level containers: Page, Form, and Desktop. If you want to register web methods on child controls, you can, but Wisej only searches top level containers automatically. To register web methods on a child control, extend the control class, override and call .
Initializes the attribute.
Wisej.Core.WisejEventArgs KeyboardInfo
Wisej.Core.WisejEventArgs PointerInfo
Wisej.Core.WisejResourcesAttribute
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Enables automatic resource loading form the assembly.
Initializes a new instance of .
Initializes a new instance of using the initialization arguments.
Name | Type | Description |
---|
Initializes a new instance of using the initialization arguments.
Name | Type | Description |
---|
Wisej.Core.WisejEventArgs
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Default arguments for Wisej events.
Creates a new instance of .
Name | Type | Description |
---|
Creates a new instance of WisejEventArgs using the incoming event data.
Name | Type | Description |
---|
Name | Type | Description |
---|
The to send.
to use when encoding the image.
A to copy to the HTTP output.
The current .
Original object.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
Initializes the attribute.
Name | Type | Description |
---|
: Returns a value indicating whether the web method is inherited by derived classes.
: Keyboard lock keys.
: Keyboard modifiers.
: Wheel delta.
: List of embedded resource files that are excluded from the bundled js and css in wisej.js and wisej.css.
: Default namespace name, or root name of the embedded resources.
Returns the assigned to the specified assembly .
Parameter | Type | Description |
---|
Returns: . The instance of the assigned to the assembly or null.
extension
The file extension to add to the mime type list.
mimeType
The mime type to add to the mime type list.
path
Path of the file to check.
path
Path of the directory to create.
path
Path of the directory to delete.
recursive
Indicates whether to delete sub directories.
path
Path of the file to delete.
path
Path of the file or directory to check.
path
File path for which to retrieve the FileAttributes.
path
Path of the file to query.
path
Path to search into.
pattern
Wild card pattern to match.
searchOption
One of the SearchOption options.
path
Path to search into.
pattern
Wild card pattern to match.
searchOption
One of the SearchOption options.
path
Path of the file to query.
path
Path of the file to query.
path
Virtual path to map to the corresponding physical path.
path
The path of the file to open.
mode
Specified if the file should be opened, created, overwritten or truncated.
access
Specified if the stream should be opened for reading or writing.
path
Path of the directory to rename.
newName
The new directory name.
path
Path of the file to rename.
newName
The new file name.
Default implementation of IFileSystemProvider. Provides access to the server's file system.
inheritable | Indicates whether the web method is inherited by derived classes. |
assembly |
e
An instance of WisejEventArgs containing the data for the event.
fileName
The file name that is used to determine the MIME type.
extension
The file extension to check.
ExcludeList | List of resource files to exclude. |
ExcludeList | List of resource files to exclude. |
RootName | Default namespace. If left null, it uses the assembly name. |
target | The target component. |
type | The event type. |
args | Event arguments. |
e | The event data received from the client. |
Keyboard | Keyboard information. |
OriginalTarget | Returns the original target of the event. |
Parameters | Event parameters. |
Pointer | Pointer information. |
Role | The "role" attribute of the clicked element. |
Target | Target component. |
Type | Event type. |
Wisej.Core.SynchronizedList<T>
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Provides a thread-safe collection that contains objects of a type specified by the generic parameter as elements.
Name | Description |
---|---|
Initializes a new instance of the SynchronizedList class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied and uses the specified syncLock object to synchronize its internal operations.
Name | Type | Description |
---|---|---|
Int32: Gets the number of elements contained in the thread-safe collection.
T: Gets an element from the thread-safe collection with a specified index.
Throws:
ArgumentOutOfRangeException The index specified is less than zero or greater than the number of items in the collection.
Object: Gets the object used to synchronize access to the thread-safe collection.
Adds an item to the thread-safe collection.
Adds the elements of the specified collection to the end of the List.
Throws:
ArgumentNullException collection is null.
Searches the entire sorted List for an element using the default comparer and returns the zero-based index of the element.
Returns: Int32. The zero-based index of item in the sorted List, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of Count.
Throws:
InvalidOperationException The default comparer Default cannot find an implementation of the IComparable generic interface or the IComparable interface for the type of the collection elements.
Searches the entire sorted List for an element using the specified comparer and returns the zero-based index of the element.
Returns: Int32. The zero-based index of item in the sorted List, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of Count.
Throws:
InvalidOperationException comparer is null, and the default comparer Default cannot find an implementation of the IComparable generic interface or the IComparable interface for the type of the collection elements.
Removes all items from the collection.
Determines whether the collection contains an element with a specific value.
Returns: Boolean. true if the element value is found in the collection; otherwise false.
Copies the elements of the collection to a specified array, starting at a particular index.
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List.
Returns: T. The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.
Throws:
ArgumentNullException match is null.
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List.
Returns: T. The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.
Throws:
ArgumentNullException match is null.
ArgumentOutOfRangeException startIndex is outside the range of valid indexes for the List.
Retrieves all the elements that match the conditions defined by the specified predicate.
Returns: List<T>. A List containing all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty List.
Throws:
ArgumentNullException match is null.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire List.
Returns: Int32. The zero-based index of the first occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.
Throws:
ArgumentNullException match is null.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List that extends from the specified index to the last element.
Returns: Int32. The zero-based index of the first occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.
Throws:
ArgumentNullException match is null.
ArgumentOutOfRangeException startIndex is outside the range of valid indexes for the List.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List that starts at the specified index and contains the specified number of elements.
Returns: Int32. The zero-based index of the first occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.
Throws:
ArgumentNullException match is null.
ArgumentOutOfRangeException startIndex is outside the range of valid indexes for the List; or count is less than 0; or startIndex and count do not specify a valid section in the List.
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List.
Returns: T. The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.
Throws:
ArgumentNullException match is null.
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List.
Returns: T. The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.
Throws:
ArgumentNullException match is null.
ArgumentOutOfRangeException startIndex is outside the range of valid indexes for the List.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire List.
Returns: Int32. The zero-based index of the last occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.
Throws:
ArgumentNullException match is null.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the List that extends from the specified index to the last element.
Returns: Int32. The zero-based index of the last occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.
Throws:
ArgumentNullException match is null.
ArgumentOutOfRangeException startIndex is outside the range of valid indexes for the List.
Performs the specified action on each element of the List.
Throws:
ArgumentNullException action is null.
Returns an enumerator that iterates through the synchronized collection.
Returns: IEnumerator<T>. An IEnumerator for objects of the type stored in the collection.
Returns the index of the first occurrence of a value in the collection.
Returns: Int32. The zero-based index of the first occurrence of the value in the collection.
Inserts an item into the collection at a specified index.
Throws:
ArgumentOutOfRangeException The index specified is less than zero or greater than the number of items in the collection.
Inserts the elements of a collection into the List at the specified index.
Throws:
ArgumentNullException collection is null.
ArgumentOutOfRangeException index is less than 0; or index is greater than Count.
Removes the first occurrence of a specified item from the collection.
Returns: Boolean. true if item was successfully removed from the collection; otherwise, false.
Removes all the elements that match the conditions defined by the specified predicate.
Returns: Int32. The number of elements removed from the List .
Throws:
ArgumentNullException match is null.
Removes an item at a specified index from the collection.
Throws:
ArgumentOutOfRangeException The index specified is less than zero or greater than the number of items in the collection.
Sorts the elements in the entire List using the default comparer.
Throws:
InvalidOperationException The default comparer Default cannot find an implementation of the IComparable generic interface or the IComparable interface for the type of the collection elements.
Sorts the elements in the entire List using the specified comparer.
Throws:
InvalidOperationException comparer is null, and the default comparer Default cannot find implementation of the IComparable generic interface or the IComparable interface for the type of the collection elements.
ArgumentException The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself.
Sorts the elements in the entire List using the specified Comparison.
Throws:
ArgumentNullException comparison is null.
ArgumentException The implementation of comparison caused an error during the sort. For example, comparison might not return 0 when comparing an item with itself.
Sorts the elements in the entire List using the specified comparer and a related IList to sort in sync with this collection.
Throws:
InvalidOperationException comparer is null, and the default comparer Default cannot find implementation of the IComparable generic interface or the IComparable interface for the type of the collection elements.
ArgumentException The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself.
Computes the sum of the sequence of System.Int32 values that are obtained by invoking a transform function on each element of the list.
Returns: Int32. The sum of the returned values.
Throws:
ArgumentNullException selector is null.
Computes the sum of the sequence of System.Int64 values that are obtained by invoking a transform function on each element of the list.
Returns: Int64. The sum of the returned values.
Throws:
ArgumentNullException selector is null.
Computes the sum of the sequence of System.Single values that are obtained by invoking a transform function on each element of the list.
Returns: Single. The sum of the returned values.
Throws:
ArgumentNullException selector is null.
Computes the sum of the sequence of System.Double values that are obtained by invoking a transform function on each element of the list.
Returns: Double. The sum of the returned values.
Throws:
ArgumentNullException selector is null.
Computes the sum of the sequence of System.Decimal values that are obtained by invoking a transform function on each element of the list.
Returns: Decimal. The sum of the returned values.
Throws:
ArgumentNullException selector is null.
Copies the elements of the List to a new array.
Returns: T[]. An array containing copies of the elements of the List.
Sets the capacity to the actual number of elements in the List, if that number is less than a threshold value.
Wisej.Core.WisejSerializerOptionsAttribute
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Defines the WisejSerializerOptions to use when serializing the target class or field or property.
Name | Type | Description |
---|---|---|
WisejSerializerOptions: Options.
Wisej.Core.WisejSerializer
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Wisej super performant JSON serializer. This is a high performant and low memory footprint JSON serializer/deserializer. It has been optimized to work with Wisej DynamicObject and to streamline serialization/deserialization. It appears to be the fastest JSON serializer/deserializer using the least memory.
Deserializes a JSON string to a System.Wisej.Core.DynamicObject.
Parameter | Type | Description |
---|---|---|
Returns: Object. A DynamicObject representing the JSON data.
Deserializes a JSON stream to a System.Wisej.Core.DynamicObject.
Parameter | Type | Description |
---|---|---|
Returns: Object. A DynamicObject representing the JSON data.
Serializes an object to standard JSON.
Returns: String. The JSON representation of value .
The assembly for which to retrieve the .
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
item
The element to be added to the collection.
collection
The collection whose elements should be added to the end of the List. The collection itself cannot be null, but it can contain elements that are null, for reference types.
item
The object to locate. The value can be null for reference types.
item
The object to locate. The value can be null for reference types.
comparer
item
The object to locate in the collection.
array
The destination Array for the elements copied from the collection.
index
The zero-based index in the array at which copying begins.
match
The Predicate delegate that defines the conditions of the element to search for.
startIndex
The zero-based starting index of the search.
match
The Predicate delegate that defines the conditions of the element to search for.
match
The Predicate delegate that defines the conditions of the elements to search for.
match
The Predicate delegate that defines the conditions of the element to search for.
startIndex
The zero-based starting index of the search.
match
The Predicate delegate that defines the conditions of the element to search for.
startIndex
The zero-based starting index of the search.
count
The number of elements in the section to search.
match
The Predicate delegate that defines the conditions of the element to search for.
match
The Predicate delegate that defines the conditions of the element to search for.
startIndex
The zero-based starting index of the search.
match
The Predicate delegate that defines the conditions of the element to search for.
match
The Predicate delegate that defines the conditions of the element to search for.
startIndex
The zero-based starting index of the search.
match
The Predicate delegate that defines the conditions of the element to search for.
action
item
Removes all items from the collection.
index
The zero-based index of the element to be retrieved from the collection.
item
The object to be inserted into the collection as an element.
index
The zero-based index at which the new elements should be inserted.
collection
The collection whose elements should be inserted into the List. The collection itself cannot be null, but it can contain elements that are null, for reference types.
item
The object to remove from the collection.
match
The Predicate delegate that defines the conditions of the elements to remove.
index
The zero-based index of the element to be retrieved from the collection.
comparer
comparison
The Comparison to use when comparing elements.
comparer
swapCallback
An optional callback method, invoked on every swap. If the callback returns true to indicate that it handled the swap, the default swap is not performed.
selector
A transform function to apply to each element.
selector
A transform function to apply to each element.
selector
A transform function to apply to each element.
selector
A transform function to apply to each element.
selector
A transform function to apply to each element.
value
Value to serialize to JSON.
options
Serializer options.
CamelCase
The names of the fields are serialized using camel casing: first char is lowercase (default).
Formatted
The output JSON string is pretty.
IgnoreDefaults
Default values are not serialized.
IgnoreNulls
Null values are not serialized.
None
No options.
PreserveDecimal
Serializes a double/float/decimal 0 to 0.0.
UseOptionsAttribute
Use the WisejSerializerOptionsAttribute assigned to the class or object being serialized.
Serializes the object to a JSON string.
Serializes the object to a JSON string.
Serializes the object to a JSON string.
Serialize the object in JSON format.
Serializes an object to standard JSON.
Options.
T
The type of object contained as items in the thread-safe collection.
capacity
The optional number of element that the list can initially store.
collection
The optional collection whose elements are copied to the new list.
syncLock
The optional lock reference.
options
json
The JSON source string.
stream
The JSON source stream.