Skip to main content

DisposableExtensions

Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class DisposableExtensions

Methods

Dispose(IEnumerable<IDisposable>, ILog)

View Source
Declaration
public static void Dispose(this IEnumerable<IDisposable> resources, ILog log)
Parameters
TypeName
System.Collections.Generic.IEnumerable<System.IDisposable>resources
ServiceStack.Logging.ILoglog

Dispose(IEnumerable<IDisposable>)

View Source
Declaration
public static void Dispose(this IEnumerable<IDisposable> resources)
Parameters
TypeName
System.Collections.Generic.IEnumerable<System.IDisposable>resources

Dispose(IDisposable[])

View Source
Declaration
public static void Dispose(params IDisposable[] disposables)
Parameters
TypeName
System.IDisposable[]disposables

Run<T>(T, Action<T>)

View Source
Declaration
public static void Run<T>(this T disposable, Action<T> runActionThenDispose)
where T : IDisposable
Parameters
TypeName
<T>disposable
System.Action<<T>>runActionThenDispose
Type Parameters
  • T