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
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.IDisposable> | resources |
ServiceStack.Logging.ILog | log |
Dispose(IEnumerable<IDisposable>)
View Source
Declaration
public static void Dispose(this IEnumerable<IDisposable> resources)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.IDisposable> | resources |
Dispose(IDisposable[])
View Source
Declaration
public static void Dispose(params IDisposable[] disposables)
Parameters
Type | Name |
---|---|
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
Type | Name |
---|---|
<T> | disposable |
System.Action<<T>> | runActionThenDispose |
Type Parameters
T