API Diff between 3.0.532 and 10.1.1
513 Additions
414 Removals
Foundatio
Foundatio.AsyncEx
Foundatio.AsyncEx.Synchronous
Foundatio.Caching
-
public static class CacheClientExtensions
- public static Task<long> DecrementAsync(this ICacheClient client, string key, TimeSpan? expiresIn = default)
- public static Task<long> DecrementAsync(this ICacheClient client, string key, long amount, TimeSpan? expiresIn = default)
- public static Task<long> DecrementAsync(this ICacheClient client, string key, long amount, DateTime? expiresAtUtc)
- public static Task<double> DecrementAsync(this ICacheClient client, string key, double amount, DateTime? expiresAtUtc)
- public static Task<long> DecrementAsync(this ICacheClient client, string key, int amount = 1, TimeSpan? expiresIn = default)
- public static Task<long> DecrementAsync(this ICacheClient client, string key, int amount = 1, DateTime? expiresAtUtc = default)
- public static Task<CacheValue<ICollection<T>>> GetSetAsync<T>(this ICacheClient client, string key)
- public static Task<DateTime> GetUnixTimeMillisecondsAsync(this ICacheClient client, string key, DateTime? defaultValue = default)
- public static Task<DateTime> GetUnixTimeSecondsAsync(this ICacheClient client, string key, DateTime? defaultValue = default)
- public static Task<long> IncrementAsync(this ICacheClient client, string key, long amount, DateTime? expiresAtUtc)
- public static Task<double> IncrementAsync(this ICacheClient client, string key, double amount, DateTime? expiresAtUtc)
- public static Task<long> IncrementAsync(this ICacheClient client, string key, TimeSpan? expiresIn = default)
- public static Task<bool> ListAddAsync<T>(this ICacheClient client, string key, T value, TimeSpan? expiresIn = default)
- public static Task<bool> ListRemoveAsync<T>(this ICacheClient client, string key, T value, TimeSpan? expiresIn = default)
- public static Task<long> IncrementAsync(this ICacheClient client, string key, int amount = 1, DateTime? expiresAtUtc = default)
- public static Task<bool> RemoveAsync(this ICacheClient client, string key)
- public static Task<bool> ReplaceIfEqualAsync<T>(this ICacheClient client, string key, T value, T expected, DateTime? expiresAtUtc)
- public static Task<bool> SetAddAsync<T>(this ICacheClient client, string key, T value, TimeSpan? expiresIn = default)
- public static Task<long> SetAddAsync<T>(this ICacheClient client, string key, IEnumerable<T> value, TimeSpan? expiresIn = default)
- public static Task<long> SetIfHigherAsync(this ICacheClient client, string key, DateTime value, TimeSpan? expiresIn = default)
- public static Task<long> SetIfLowerAsync(this ICacheClient client, string key, DateTime value, TimeSpan? expiresIn = default)
- public static Task<bool> SetRemoveAsync<T>(this ICacheClient client, string key, T value, TimeSpan? expiresIn = default)
- public static Task<long> SetRemoveAsync<T>(this ICacheClient client, string key, IEnumerable<T> value, TimeSpan? expiresIn = default)
- public static Task<bool> SetUnixTimeMillisecondsAsync(this ICacheClient client, string key, DateTime value, TimeSpan? expiresIn = default)
- public static Task<bool> SetUnixTimeMillisecondsAsync(this ICacheClient client, string key, DateTime value, DateTime? expiresAtUtc)
- public static Task<bool> SetUnixTimeSecondsAsync(this ICacheClient client, string key, DateTime value, TimeSpan? expiresIn = default)
- public static Task<bool> SetUnixTimeSecondsAsync(this ICacheClient client, string key, DateTime value, DateTime? expiresAtUtc)
-
public class HybridCacheClient : ICacheClient, IDisposable
- protected readonly ICacheClient _distributedCache
- protected readonly IMessageBus _messageBus
- public HybridCacheClient(ICacheClient distributedCacheClient, IMessageBus messageBus, InMemoryCacheClientOptions localCacheOptions = null, ILoggerFactory loggerFactory = null)
- public int LocalCacheSize { get; set; }
- public HybridCacheClient(ICacheClient distributedCacheClient, IMessageBus messageBus)
- public Task<bool> ExistsAsync(string key)
- public Task<CacheValue<ICollection<T>>> GetListAsync<T>(string key, int? page = default, int pageSize = 100)
- public Task<double> IncrementAsync(string key, double amount, TimeSpan? expiresIn = default)
- public Task<long> IncrementAsync(string key, long amount, TimeSpan? expiresIn = default)
- public Task<long> ListAddAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- public Task<long> ListRemoveAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- public Task<long> IncrementAsync(string key, int amount = 1, TimeSpan? expiresIn = default)
- public Task<bool> RemoveAsync(string key)
- public Task<bool> RemoveIfEqualAsync<T>(string key, T expected)
- public Task<bool> ReplaceIfEqualAsync<T>(string key, T value, T expected, TimeSpan? expiresIn = default)
- public Task<double> SetIfHigherAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfHigherAsync(string key, long value, TimeSpan? expiresIn = default)
- public Task<double> SetIfLowerAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfLowerAsync(string key, long value, TimeSpan? expiresIn = default)
-
public interface ICacheClient : IDisposable
- Task<bool> ExistsAsync(string key)
- Task<CacheValue<ICollection<T>>> GetListAsync<T>(string key, int? page = default, int pageSize = 100)
- Task<double> IncrementAsync(string key, double amount, TimeSpan? expiresIn = default)
- Task<long> IncrementAsync(string key, long amount, TimeSpan? expiresIn = default)
- Task<long> ListAddAsync<T>(string key, IEnumerable<T> value, TimeSpan? expiresIn = default)
- Task<long> ListRemoveAsync<T>(string key, IEnumerable<T> value, TimeSpan? expiresIn = default)
- Task<long> IncrementAsync(string key, int amount = 1, TimeSpan? expiresIn = default)
- Task<bool> RemoveAsync(string key)
- Task<bool> RemoveIfEqualAsync<T>(string key, T expected)
- Task<bool> ReplaceIfEqualAsync<T>(string key, T value, T expected, TimeSpan? expiresIn = default)
- Task<double> SetIfHigherAsync(string key, double value, TimeSpan? expiresIn = default)
- Task<long> SetIfHigherAsync(string key, long value, TimeSpan? expiresIn = default)
- Task<double> SetIfLowerAsync(string key, double value, TimeSpan? expiresIn = default)
- Task<long> SetIfLowerAsync(string key, long value, TimeSpan? expiresIn = default)
-
public interface IHybridCacheClient : ICacheClient, IDisposable
-
public class InMemoryCacheClient : MaintenanceBase, ICacheClient, IDisposable
- public long Calls { get; }
- public ICollection<KeyValuePair<string, object>> Items { get; }
- public long Reads { get; }
- public long Writes { get; }
- public bool ShouldCloneValues { get; set; }
- public InMemoryCacheClient(InMemoryCacheClientOptions options = null)
- public InMemoryCacheClient(Builder<InMemoryCacheClientOptionsBuilder, InMemoryCacheClientOptions> config)
- public void Dispose()
- public Task<bool> ExistsAsync(string key)
- public Task<CacheValue<ICollection<T>>> GetListAsync<T>(string key, int? page = default, int pageSize = 100)
- public Task<double> IncrementAsync(string key, double amount, TimeSpan? expiresIn = default)
- public Task<long> IncrementAsync(string key, long amount, TimeSpan? expiresIn = default)
- public Task<long> ListAddAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- public Task<long> ListRemoveAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- public Task<long> IncrementAsync(string key, int amount = 1, TimeSpan? expiresIn = default)
- protected virtual Task OnItemExpiredAsync(string key)
- public Task<bool> RemoveAsync(string key)
- public Task<bool> RemoveIfEqualAsync<T>(string key, T expected)
- public Task<bool> ReplaceIfEqualAsync<T>(string key, T value, T expected, TimeSpan? expiresIn = default)
- public void ResetStats()
- public Task<double> SetIfHigherAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfHigherAsync(string key, long value, TimeSpan? expiresIn = default)
- public Task<double> SetIfLowerAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfLowerAsync(string key, long value, TimeSpan? expiresIn = default)
-
public class InMemoryCacheClientOptions : SharedOptions
-
public class InMemoryCacheClientOptionsBuilder : SharedOptionsBuilder<InMemoryCacheClientOptions, InMemoryCacheClientOptionsBuilder>
-
public class ItemExpiredEventArgs : EventArgs
-
public class NullCacheClient : ICacheClient, IDisposable
- public static readonly NullCacheClient Instance
- public long Calls { get; }
- public long Reads { get; }
- public long Writes { get; }
- public Task<bool> ExistsAsync(string key)
- public Task<CacheValue<ICollection<T>>> GetListAsync<T>(string key, int? page = default, int pageSize = 100)
- public Task<double> IncrementAsync(string key, double amount, TimeSpan? expiresIn = default)
- public Task<long> IncrementAsync(string key, long amount, TimeSpan? expiresIn = default)
- public Task<long> ListAddAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- public Task<long> ListRemoveAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- public Task<long> IncrementAsync(string key, int amount = 1, TimeSpan? expiresIn = default)
- public Task<bool> RemoveAsync(string key)
- public Task<bool> RemoveIfEqualAsync<T>(string key, T expected)
- public Task<bool> ReplaceIfEqualAsync<T>(string key, T value, T expected, TimeSpan? expiresIn = default)
- public void ResetStats()
- public Task<double> SetIfHigherAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfHigherAsync(string key, long value, TimeSpan? expiresIn = default)
- public Task<double> SetIfLowerAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfLowerAsync(string key, long value, TimeSpan? expiresIn = default)
-
public class ScopedCacheClient : ICacheClient, IDisposable
- public Task<bool> ExistsAsync(string key)
- public Task<CacheValue<ICollection<T>>> GetListAsync<T>(string key, int? page = default, int pageSize = 100)
- protected string GetUnscopedCacheKey(string key)
- protected IEnumerable<string> GetUnscopedCacheKeys(IEnumerable<string> keys)
- public Task<double> IncrementAsync(string key, double amount, TimeSpan? expiresIn = default)
- public Task<long> IncrementAsync(string key, long amount, TimeSpan? expiresIn = default)
- public Task<long> ListAddAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- public Task<long> ListRemoveAsync<T>(string key, IEnumerable<T> values, TimeSpan? expiresIn = default)
- protected IEnumerable<string> GetScopedCacheKey(IEnumerable<string> keys)
- public Task<long> IncrementAsync(string key, int amount = 1, TimeSpan? expiresIn = default)
- public Task<bool> RemoveAsync(string key)
- public Task<bool> RemoveIfEqualAsync<T>(string key, T expected)
- public Task<bool> ReplaceIfEqualAsync<T>(string key, T value, T expected, TimeSpan? expiresIn = default)
- public Task<double> SetIfHigherAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfHigherAsync(string key, long value, TimeSpan? expiresIn = default)
- public Task<double> SetIfLowerAsync(string key, double value, TimeSpan? expiresIn = default)
- public Task<long> SetIfLowerAsync(string key, long value, TimeSpan? expiresIn = default)
- public void SetScope(string scope)
-
public class ScopedHybridCacheClient : ScopedCacheClient, IHybridCacheClient, ICacheClient, IDisposable
Foundatio.Collections
Foundatio.Disposables
Foundatio.Disposables.Internals
Foundatio.Extensions
-
public static class ConcurrentQueueExtensions
-
public static class DateTimeExtensions
-
public static class EnumerableExtensions
-
public static class EnumExtensions
- public static string GetDescription(Enum en)
- public static object GetEnumDefaultValue(Type type)
- public static List<string> GetValues<T>() where T : struct, IConvertible
- public static bool IsAnyFlagOn<T>(this Enum mask, T flag) where T : struct, IComparable, IFormattable, IConvertible
- public static bool IsFlagOn<T>(this Enum mask, T flag) where T : struct, IComparable, IFormattable, IConvertible
- public static T SetFlagOff<T>(this Enum mask, T flag) where T : struct, IComparable, IFormattable, IConvertible
- public static T SetFlagOn<T>(this Enum mask, T flag) where T : struct, IComparable, IFormattable, IConvertible
- public static T ToggleFlag<T>(this Enum mask, T flag) where T : struct, IComparable, IFormattable, IConvertible
- public static string ToStringHex<T>(this Enum enum) where T : struct, IComparable, IFormattable, IConvertible
- public static bool TryEnumIsDefined(Type type, object value)
- public static bool TryParseEnum<T>(this Enum value, string input, out T returnValue) where T : struct, IComparable, IFormattable, IConvertible
-
public static class ExceptionExtensions
-
public enum JsonType
-
public static class NumericExtensions
-
public static class ObjectExtensions
- public static object Copy(this object original)
- public static T Copy<T>(this T original)
- public static bool IsPrimitive(this Type type)
-
public class PriorityAttribute : Attribute
-
public class ReferenceEqualityComparer : EqualityComparer<object>
-
public static class ServiceProviderExtensions
-
public static class StringExtensions
-
public static class TimespanExtensions
-
public static class TypeExtensions
Foundatio.Extensions.ArrayExtensions
Foundatio.Jobs
-
public class DelegateWorkItemHandler : IWorkItemHandler
- public DelegateWorkItemHandler(Func<WorkItemContext, Task> handler, ILogger logger = null, Action<IQueueEntry<WorkItemData>, Type, object> logProcessingWorkItem = null, Action<IQueueEntry<WorkItemData>, Type, object> logAutoCompletedWorkItem = null)
- public bool AutoRenewLockOnProgress { get; set; }
- public DelegateWorkItemHandler(Func<WorkItemContext, Task> handler)
- public Task<ILock> GetWorkItemLockAsync(object workItem, CancellationToken cancellationToken = default)
- public Task HandleItemAsync(WorkItemContext context)
-
public interface IJob
-
public interface IQueueJob<T> : IJob
-
public interface IOneTimeWorkItemHandler : IWorkItemHandler
-
public interface IQueueProcessorJob : IDisposable
-
public interface IWorkItemHandler
-
public class JobAttribute : Attribute
-
public abstract class JobBase : IDisposable
-
public class JobContext
-
public static class JobExtensions
-
public static class JobOptionExtensions
-
public class JobOptions
-
public class JobQueueEntryContext<T>
-
public class JobResult
-
public static class JobResultExtensions
-
public class JobRunContext
-
public class JobRunner
- public CancellationTokenSource CancellationTokenSource { get; }
- public JobRunner(JobOptions options, ILoggerFactory loggerFactory = null)
- public JobRunner(IJob instance, ILoggerFactory loggerFactory = null, TimeSpan? initialDelay = default, int instanceCount = 1, bool runContinuous = true, int iterationLimit = -1, TimeSpan? interval = default)
- public JobRunner(Func<IJob> jobFactory, ILoggerFactory loggerFactory = null, TimeSpan? initialDelay = default, int instanceCount = 1, bool runContinuous = true, int iterationLimit = -1, TimeSpan? interval = default)
- public static CancellationToken GetShutdownCancellationToken(ILogger logger = null)
- public Task<bool> RunAsync(CancellationToken cancellationToken = default)
- public void RunInBackground(CancellationToken cancellationToken = default)
- public Task<int> RunInConsoleAsync()
- public JobRunner()
- public static JobBase CreateJobInstance(string jobTypeName)
- public static JobBase CreateJobInstance(Type jobType)
- public static void ResolveTypes(JobRunOptions options)
- public static Task<JobResult> RunAsync(Type jobType, TimeSpan? initialDelay = default, CancellationToken cancellationToken = default)
- public static Task<int> RunAsync(JobRunOptions options, CancellationToken cancellationToken = default)
- public static Task RunContinuousAsync(Type jobType, TimeSpan? interval = default, TimeSpan? initialDelay = default, int iterationLimit = -1, int instanceCount = 1, CancellationToken cancellationToken = default)
- public static Task RunContinuousAsync<T>(TimeSpan? interval = default, TimeSpan? initialDelay = default, int iterationLimit = -1, int instanceCount = 1, CancellationToken cancellationToken = default)
- public static int RunInConsole(JobRunOptions options, Action<IServiceProvider> afterBootstrap = null)
- public static Task RunUntilEmptyAsync<T>(CancellationToken cancellationToken = default) where T : IQueueProcessorJob
-
public abstract class JobWithLockBase : IJob, IHaveLogger
-
public class QueueEntryContext<T> : JobContext
-
public abstract class QueueJobBase<T> : IQueueJob<T>, IJob, IHaveLogger
-
public static class QueueJobExtensions
-
public class JobRunOptions
-
public abstract class OneTimeWorkItemHandlerBase : IOneTimeWorkItemHandler, IWorkItemHandler
-
public abstract class QueueProcessorJobBase<T> : JobBase, IQueueProcessorJob, IDisposable
-
public class ShutdownEventArgs
-
public static class ShutdownEventCatcher
-
public enum ShutdownReason
-
public class WorkItemContext : JobQueueEntryContext<WorkItemData>
- public CancellationToken CancellationToken { get; }
- public WorkItemContext(object data, string jobId, ILock workItemLock, CancellationToken cancellationToken, Func<int, string, Task> progressCallback)
- public WorkItemContext(JobQueueEntryContext<WorkItemData> context, object data, string jobId, ILock workItemLock, Func<int, string, Task> progressCallback)
- public Task RenewLockAsync()
-
public class WorkItemData : IHaveMetricName
-
public abstract class WorkItemHandlerBase : IWorkItemHandler
-
public class WorkItemHandlers
- public void Register<TWorkItem, THandler>() where THandler : IWorkItemHandler
- public void Register<T>(Func<IWorkItemHandler> handler)
- public void Register<T>(Func<WorkItemContext, Task> handler, ILogger logger = null, Action<IQueueEntry<WorkItemData>, Type, object> logProcessingWorkItem = null, Action<IQueueEntry<WorkItemData>, Type, object> logAutoCompletedWorkItem = null)
- public void Register<T>(Func<WorkItemContext, Task> handler, CancellationToken cancellationToken = default)
-
public class WorkItemJob : QueueProcessorJobBase<WorkItemData>
Foundatio.Lock
-
public class CacheLockProvider : ILockProvider, IDisposable
- public CacheLockProvider(ICacheClient cacheClient, IMessageBus messageBus, ILoggerFactory loggerFactory = null)
- public Task<ILock> AcquireAsync(string resource, TimeSpan? timeUntilExpires = default, bool releaseOnDispose = true, CancellationToken cancellationToken = default)
- public CacheLockProvider(ICacheClient cacheClient, IMessageBus messageBus)
- public Task<ILock> AcquireAsync(string name, TimeSpan? lockTimeout = default, CancellationToken cancellationToken = default)
- public void Dispose()
- public Task ReleaseAsync(string resource, string lockId)
- public Task RenewAsync(string resource, string lockId, TimeSpan? timeUntilExpires = default)
- public Task ReleaseAsync(string name)
- public Task RenewAsync(string name, TimeSpan? lockExtension = default)
-
public class CacheLockReleased
-
public interface ILock : IDisposable
-
public interface ILockProvider : IDisposable
-
public static class LockProviderExtensions
- public static Task<ILock> AcquireAsync(this ILockProvider provider, string resource, TimeSpan? timeUntilExpires = default, CancellationToken cancellationToken = default)
- public static Task<ILock> AcquireAsync(this ILockProvider provider, IEnumerable<string> resources, TimeSpan? timeUntilExpires = default, bool releaseOnDispose = true, CancellationToken cancellationToken = default)
- public static Task<ILock> AcquireAsync(this ILockProvider provider, IEnumerable<string> resources, TimeSpan? timeUntilExpires, TimeSpan? acquireTimeout)
- public static Task<ILock> AcquireAsync(this ILockProvider provider, IEnumerable<string> resources, TimeSpan? timeUntilExpires, TimeSpan? acquireTimeout, bool releaseOnDispose)
- public static Task ReleaseAsync(this ILockProvider provider, ILock lock)
- public static Task RenewAsync(this ILockProvider provider, ILock lock, TimeSpan? timeUntilExpires = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, string resource, Func<CancellationToken, Task> work, TimeSpan? timeUntilExpires = default, CancellationToken cancellationToken = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, string resource, Func<Task> work, TimeSpan? timeUntilExpires = default, CancellationToken cancellationToken = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, string resource, Func<CancellationToken, Task> work, TimeSpan? timeUntilExpires = default, TimeSpan? acquireTimeout = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, string resource, Func<Task> work, TimeSpan? timeUntilExpires = default, TimeSpan? acquireTimeout = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, string resource, Action work, TimeSpan? timeUntilExpires = default, TimeSpan? acquireTimeout = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, IEnumerable<string> resources, Func<CancellationToken, Task> work, TimeSpan? timeUntilExpires = default, CancellationToken cancellationToken = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, IEnumerable<string> resources, Func<Task> work, TimeSpan? timeUntilExpires = default, CancellationToken cancellationToken = default)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, IEnumerable<string> resources, Func<CancellationToken, Task> work, TimeSpan? timeUntilExpires, TimeSpan? acquireTimeout)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, IEnumerable<string> resources, Func<Task> work, TimeSpan? timeUntilExpires, TimeSpan? acquireTimeout)
- public static Task<bool> TryUsingAsync(this ILockProvider locker, IEnumerable<string> resources, Action work, TimeSpan? timeUntilExpires, TimeSpan? acquireTimeout)
- public static Task TryUsingAsync(this ILockProvider locker, string name, Func<CancellationToken, Task> work, TimeSpan? lockTimeout = default, CancellationToken cancellationToken = default)
- public static Task TryUsingAsync(this ILockProvider locker, string name, Func<Task> work, TimeSpan? lockTimeout = default, CancellationToken cancellationToken = default)
- public static Task TryUsingAsync(this ILockProvider locker, string name, Func<CancellationToken, Task> work, TimeSpan? lockTimeout = default, TimeSpan? acquireTimeout = default)
- public static Task TryUsingAsync(this ILockProvider locker, string name, Func<Task> work, TimeSpan? lockTimeout = default, TimeSpan? acquireTimeout = default)
-
public class ScopedLockProvider : ILockProvider, IHaveLogger
-
public class ThrottlingLockProvider : ILockProvider, IDisposable
- public ThrottlingLockProvider(ICacheClient cacheClient, int maxHitsPerPeriod = 100, TimeSpan? throttlingPeriod = default, ILoggerFactory loggerFactory = null)
- public Task<ILock> AcquireAsync(string resource, TimeSpan? timeUntilExpires = default, bool releaseOnDispose = true, CancellationToken cancellationToken = default)
- public ThrottlingLockProvider(ICacheClient cacheClient, int maxHitsPerPeriod = 100, TimeSpan? throttlingPeriod = default)
- public Task<ILock> AcquireAsync(string name, TimeSpan? lockTimeout = default, CancellationToken cancellationToken = default)
- public void Dispose()
- public Task ReleaseAsync(string resource, string lockId)
- public Task RenewAsync(string resource, string lockId, TimeSpan? timeUntilExpires = default)
- public Task ReleaseAsync(string name)
- public Task RenewAsync(string name, TimeSpan? lockExtension = default)
Foundatio.Logging
-
public class AsynchronousContext : IPropertyContext
-
public sealed class DisposeAction : IDisposable
-
public interface ILogBuilder
- LogData LogData { get; }
- ILogBuilder Exception(Exception exception)
- ILogBuilder Level(LogLevel logLevel)
- ILogBuilder Logger(string logger)
- ILogBuilder Logger<TLogger>()
- ILogBuilder Message(string message)
- ILogBuilder Message(string format, object arg0)
- ILogBuilder Message(string format, object arg0, object arg1)
- ILogBuilder Message(string format, object arg0, object arg1, object arg2)
- ILogBuilder Message(string format, object arg0, object arg1, object arg2, object arg3)
- ILogBuilder Message(string format, object[] args)
- ILogBuilder Message(IFormatProvider provider, string format, object[] args)
- ILogBuilder Property(string name, object value)
- void Write(string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
- void WriteIf(Func<bool> condition, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
- void WriteIf(bool condition, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
-
public interface ILogger
-
public interface ILogWriter
-
public interface IPropertyContext
-
public sealed class LogBuilder : ILogBuilder
- public LogData LogData { get; }
- public LogBuilder(LogLevel logLevel, Action<LogData> writer)
- public ILogBuilder Exception(Exception exception)
- public ILogBuilder Level(LogLevel logLevel)
- public ILogBuilder Logger(string logger)
- public ILogBuilder Logger<TLogger>()
- public ILogBuilder Message(string message)
- public ILogBuilder Message(string format, object arg0)
- public ILogBuilder Message(string format, object arg0, object arg1)
- public ILogBuilder Message(string format, object arg0, object arg1, object arg2)
- public ILogBuilder Message(string format, object arg0, object arg1, object arg2, object arg3)
- public ILogBuilder Message(string format, object[] args)
- public ILogBuilder Message(IFormatProvider provider, string format, object[] args)
- public ILogBuilder Property(string name, object value)
- public void Write(string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
- public void WriteIf(Func<bool> condition, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
- public void WriteIf(bool condition, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
-
public sealed class LogData
-
public sealed class Logger : ILogger
-
public class LoggerCreateBuilder
-
public class LoggerTextWriter : TextWriter
-
public enum LogLevel
-
public sealed class NullLogBuilder : ILogBuilder
- public LogData LogData { get; }
- public NullLogBuilder()
- public ILogBuilder Exception(Exception exception)
- public ILogBuilder Level(LogLevel logLevel)
- public ILogBuilder Logger(string logger)
- public ILogBuilder Logger<TLogger>()
- public ILogBuilder Message(string message)
- public ILogBuilder Message(string format, object arg0)
- public ILogBuilder Message(string format, object arg0, object arg1)
- public ILogBuilder Message(string format, object arg0, object arg1, object arg2)
- public ILogBuilder Message(string format, object arg0, object arg1, object arg2, object arg3)
- public ILogBuilder Message(string format, object[] args)
- public ILogBuilder Message(IFormatProvider provider, string format, object[] args)
- public ILogBuilder Property(string name, object value)
- public void Write(string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
- public void WriteIf(Func<bool> condition, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
- public void WriteIf(bool condition, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
-
public class PropertyContext : IPropertyContext
-
public class TraceLogWriter : ILogWriter
Foundatio.Messaging
-
public interface IMessage
-
public interface IMessageSubscriber
-
public class InMemoryMessageBus : MessageBusBase, IMessageBus, IMessagePublisher, IMessageSubscriber, IDisposable
-
public class InMemoryMessageBusOptions : SharedMessageBusOptions
-
public class InMemoryMessageBusOptionsBuilder : SharedMessageBusOptionsBuilder<InMemoryMessageBusOptions, InMemoryMessageBusOptionsBuilder>
-
public class Message : IMessage
-
public abstract class MessageBusBase<TOptions> : IMessageBus, IMessagePublisher, IMessageSubscriber, IDisposable where TOptions : SharedMessageBusOptions
-
public abstract class MessageBusBase : MaintenanceBase, IMessagePublisher
- protected class DelayedMessage
- protected class Subscriber
- protected readonly ConcurrentDictionary<string, Subscriber> _subscribers
- public MessageBusBase()
- protected Task AddDelayedMessageAsync(Type messageType, object message, TimeSpan delay)
- public abstract Task PublishAsync(Type messageType, object message, TimeSpan? delay = default, CancellationToken cancellationToken = default)
- protected Task SendMessageToSubscribersAsync(Type messageType, object message)
- public virtual void Subscribe<T>(Func<T, CancellationToken, Task> handler, CancellationToken cancellationToken = default)
-
public class MessageBusData
-
public static class MessageBusExtensions
- public static Task SubscribeAsync<T>(this IMessageSubscriber subscriber, Func<T, Task> handler, CancellationToken cancellationToken = default)
- public static Task SubscribeAsync<T>(this IMessageSubscriber subscriber, Action<T> handler, CancellationToken cancellationToken = default)
- public static Task SubscribeAsync(this IMessageSubscriber subscriber, Func<IMessage, CancellationToken, Task> handler, CancellationToken cancellationToken = default)
- public static Task SubscribeAsync(this IMessageSubscriber subscriber, Func<IMessage, Task> handler, CancellationToken cancellationToken = default)
- public static Task SubscribeAsync(this IMessageSubscriber subscriber, Action<IMessage> handler, CancellationToken cancellationToken = default)
- public static void Subscribe<T>(this IMessageSubscriber subscriber, Func<T, Task> handler, CancellationToken cancellationToken = default)
- public static void Subscribe<T>(this IMessageSubscriber subscriber, Action<T> handler, CancellationToken cancellationToken = default)
-
public class NullMessageBus : IMessageBus, IMessagePublisher, IMessageSubscriber, IDisposable
-
public class SharedMessageBusOptions : SharedOptions
-
public class SharedMessageBusOptionsBuilder<TOptions, TBuilder> : SharedOptionsBuilder<TOptions, TBuilder> where TOptions : SharedMessageBusOptions where TBuilder : SharedMessageBusOptionsBuilder<TOptions, TBuilder>
Foundatio.Metrics
-
public abstract class BufferedMetricsClientBase : IBufferedMetricsClient, IMetricsClient, IDisposable
-
public abstract class CacheBucketMetricsClientBase : BufferedMetricsClientBase, IMetricsClientStats
-
public class CountedEventArgs : EventArgs
-
public class CounterStat
-
public class CounterStatSummary
-
public class GaugeStat
-
public class GaugeStatSummary
-
public interface IBufferedMetricsClient : IMetricsClient, IDisposable
-
public interface IHaveSubMetricName
-
public class CounterStats : ICounterStats
-
public class GaugeStats : IGaugeStats
- public double Average { get; }
- public int Count { get; }
- public double Current { get; }
- public double Max { get; }
- public double Total { get; }
- public GaugeStats(double value)
- public void Set(double value)
-
public interface ICounterStats
-
public interface IGaugeStats
-
public interface IHaveMetricName
-
public interface IHaveMetricStats
-
public interface IMetricsClient : IDisposable
-
public interface IMetricsClientStats
-
public class InMemoryMetricsClient : IMetricsClient, IDisposable
- public IDictionary<string, CounterStats> Counters { get; }
- public IDictionary<string, GaugeStats> Gauges { get; }
- public IDictionary<string, TimingStats> Timings { get; }
- public InMemoryMetricsClient(InMemoryMetricsClientOptions options)
- public InMemoryMetricsClient(Builder<InMemoryMetricsClientOptionsBuilder, InMemoryMetricsClientOptions> config)
- public Task CounterAsync(string statName, int value = 1)
- public void DisplayStats(TextWriter writer = null)
- public void Dispose()
- public Task GaugeAsync(string statName, double value)
- public long GetCount(string statName)
- public double GetGaugeValue(string statName)
- public MetricStats GetMetricStats()
- public void Reset()
- public void StartDisplayingStats(TimeSpan? interval = default, TextWriter writer = null)
- public void StopDisplayingStats()
- public Task TimerAsync(string statName, long milliseconds)
- public Task<bool> WaitForCounterAsync(string statName, long count = 1, TimeSpan? timeout = default)
- public Task<bool> WaitForCounterAsync(string statName, Func<Task> work, long count = 1, CancellationToken cancellationToken = default)
-
public class InMemoryMetricsClientOptions : SharedMetricsClientOptions
-
public class InMemoryMetricsClientOptionsBuilder : SharedMetricsClientOptionsBuilder<InMemoryMetricsClientOptions, InMemoryMetricsClientOptionsBuilder>
-
public struct MetricKey : IEquatable<MetricKey>
-
public interface ITimingStats
-
public static class MetricsClientExtensions
-
public static class MetricsClientStatsExtensions
-
public class MetricStats
-
public class NullMetricsClient : IMetricsClient, IDisposable
-
public class SharedMetricsClientOptions : SharedOptions
-
public class SharedMetricsClientOptionsBuilder<TOption, TBuilder> : SharedOptionsBuilder<TOption, TBuilder> where TOption : SharedMetricsClientOptions where TBuilder : SharedMetricsClientOptionsBuilder<TOption, TBuilder>
-
public class StatsDMetricsClient : IMetricsClient, IDisposable
-
public class StatsDMetricsClientOptions : SharedMetricsClientOptions
-
public class StatsDMetricsClientOptionsBuilder : SharedMetricsClientOptionsBuilder<StatsDMetricsClientOptions, StatsDMetricsClientOptionsBuilder>
-
public class TimingStat
-
public class TimingStatSummary
-
public class TimingStats : ITimingStats
- public double Average { get; }
- public int Count { get; }
- public long Current { get; }
- public long Max { get; }
- public long Min { get; }
- public long Total { get; }
- public TimingStats(long value)
- public void Set(long value)
Foundatio.Queues
-
public class AbandonedEventArgs<T> : EventArgs
-
public class CompletedEventArgs<T> : EventArgs
-
public class DequeuedEventArgs<T> : EventArgs
-
public class DuplicateDetectionQueueBehavior<T> : QueueBehaviorBase<T>
-
public class EnqueuedEventArgs<T> : EventArgs
-
public class EnqueuingEventArgs<T> : CancelEventArgs
- public QueueEntryOptions Options { get; set; }
-
public interface IHaveUniqueIdentifier
-
public class InMemoryQueue<T> : QueueBase<T>
-
public class InMemoryQueueOptions<T> : SharedQueueOptions<T>
-
public class InMemoryQueueOptionsBuilder<T> : SharedQueueOptionsBuilder<T, InMemoryQueueOptions<T>, InMemoryQueueOptionsBuilder<T>>
-
public interface IQueue : IHaveSerializer, IDisposable
-
public interface IQueue<T> : IHaveSerializer, IDisposable
-
public interface IQueueActivity
-
public interface IQueueEntry
-
public interface IQueueEntry<T> : IQueueEntry
-
public interface IQueueEntryMetadata
-
public class LockRenewedEventArgs<T> : EventArgs
-
public class MetricsQueueBehavior<T> : QueueBehaviorBase<T>
-
public abstract class QueueBase<T, TOptions> : MaintenanceBase, IQueue<T>, IQueue, IHaveSerializer, IDisposable, IQueueActivity where TOptions : SharedQueueOptions<T>
-
public abstract class QueueBase<T> : MaintenanceBase, IQueue<T>, IHaveSerializer, IDisposable
-
public abstract class QueueBehaviorBase<T> : IQueueBehavior<T>, IDisposable
- protected virtual Task OnLockRenewed(object sender, LockRenewedEventArgs<T> dequeuedEventArgs)
-
public class QueueEntry<T> : IDisposable
-
public class QueueEntryOptions
-
public class QueueEntryMetadata
-
public static class QueueExtensions
-
public class QueueStatSummary
-
public class SharedQueueOptions<T> : SharedOptions
-
public class SharedQueueOptionsBuilder<T, TOptions, TBuilder> : SharedOptionsBuilder<TOptions, TBuilder> where TOptions : SharedQueueOptions<T> where TBuilder : SharedQueueOptionsBuilder<T, TOptions, TBuilder>
Foundatio.Serializer
-
public static class DefaultSerializer
-
public interface ISerializer
-
public interface ITextSerializer : ISerializer
-
public class ObjectToInferredTypesConverter : JsonConverter<object>
-
public class JsonNetSerializer : ISerializer
-
public static class SerializerExtensions
- public static T Deserialize<T>(this ISerializer serializer, Stream data)
- public static T Deserialize<T>(this ISerializer serializer, byte[] data)
- public static object Deserialize(this ISerializer serializer, byte[] data, Type objectType)
- public static T Deserialize<T>(this ISerializer serializer, string data)
- public static object Deserialize(this ISerializer serializer, string data, Type objectType)
- public static byte[] SerializeToBytes<T>(this ISerializer serializer, T value)
- public static string SerializeToString<T>(this ISerializer serializer, T value)
- public static Task<object> DeserializeAsync(this ISerializer serializer, string data, Type objectType)
- public static Task<T> DeserializeAsync<T>(this ISerializer serializer, byte[] data)
- public static Task<T> DeserializeAsync<T>(this ISerializer serializer, string data)
- public static Task<string> SerializeToStringAsync(this ISerializer serializer, object value)
-
public class SystemTextJsonSerializer : ITextSerializer, ISerializer
Foundatio.ServiceProviders
Foundatio.Storage
Foundatio.Utility
Microsoft.Extensions.Logging