Namespace Shift.Common
Namespaces
Classes
- AccessHelper<T>
Generic base class for access control helpers.
- Actor
An actor represents an individual person or group or system that performs actions through the UI and/or API.
- BuildManagerProxy
Mimic the implementation of BuildManager.GetType without requiring a dependency on System.Web
- Cache
The non-generic Cache class instanciates a Cache{object} that can be used with any type of (mixed) content. It also publishes a static
.Globalmember, so a cache can be used without creating a dedicated instance. The.Globalmember is lazy-instantiated.
- ContentContainerItem
A ContentContainerItem represents a unit of content where we have HTML and equivalent Markdown Text (or vice versa), and then a plain-text snippet of the first 100 characters. Each of unit of content is designed to store the same value in multiple languages.
- EncodedJwt
Implements a raw JSON Web Token (JWT).
- Interval
Implements a half-open interval of date/time values.
- MemoryCache<T>
This is a generic cache based on key/value pairs where key is a string. You can add any item to this cache as long as the key is unique, so treat keys like namespaces and apply consistent naming conventions throughout your application. Every cache entry has its own timeout. This class is thread safe and will delete expired entries on its own using System.Threading.Timers (which run on ThreadPool threads).
- MemoryCache<TKey, TData>
This is a generic cache based on key/value pairs, where both key and value are generic. Keys must be unique. Every entry in the cache has its own timeout. Cache is a thread-safe class, and it deletes expired entries on its own using System.Threading.Timers that run on ThreadPool threads.
- Origin
Represents the original context for some action in the system (e.g., operation, event, change, etc.).
- PasswordHash
Salted password hashing with PBKDF2-SHA1. Author: havoc AT defuse.ca www: http://crackstation.net/hashing-security.htm Compatibility: .NET 3.0 and later.
- PermissionMatrix
The set of all permission lists, indexed by organization (tenant) account code.
- Problem
Represents a machine-readable format for specifying errors in HTTP API responses
- ProblemFactory
Helper class for creating common Problem instances.
- QueryDispatcher
Implements a basic queue for running queries.
- QuerySerializer
Provides functions to convert between instances of IQuery and SerializedQuery.
- Query<TResult>
Base class implementation for the IQuery interface.
- SerializedQuery
Provides a database-friendly serialization wrapper for a query.
- SystemRole
System roles represent the platform-wide AuthorityAccess enumeration values
Interfaces
- IHumanizer
Insulates our code from direct dependencies on the Humanizer assemblies.
- IJsonSerializer
Provides serialization and deserialization functionality to and from string values.
- IJsonSerializerBase
Provides serialization and deserialization functionality to and from string values. This allows your client code to use any JSON serialization library you want (System.Text.Json or Newtonsoft.Json, for example).
- IJwt
Defines the interface for a decoded JSON web token.
- IMemoryCache<TK, T>
Provides functionality to add, remove, and get objects in a cache.
- IQuery<TResult>
Defines a query with a strongly-typed result.
Enums
- BaseMonitor.LogLevel
Enum for log levels - independent of any external library