Class SafeTextWriterWrapper
Decorates a instance and
makes no assumptions about whether
has been called on the inner instance or not. Acts like a circuit breaker -
the first caught turns it off and
the rest of the calls are ignored after that point until Reset()
is called.
The primary purpose is for using a instance within a non-disposable
parent object. Since the creator of the ultimately is responsible for
disposing it, our non-disposable object has no way of knowing whether it is safe to use the .
Wraping the within a SafeTextWriterWrapper ensures the
non-disposable object can continue to make calls to the without raising
exceptions (it is presumed that the functionality is optional).
Inheritance
System.Object
SafeTextWriterWrapper
Assembly: DistributedLucene.Net.dll
Syntax
public class SafeTextWriterWrapper : TextWriter
Constructors
Properties
Methods
Name |
Description |
Close()
|
|
Dispose(Boolean)
|
|
Equals(Object)
|
|
Flush()
|
|
FlushAsync()
|
|
GetHashCode()
|
|
InitializeLifetimeService()
|
|
Reset()
|
|
ToString()
|
|
Write(Boolean)
|
|
Write(Char)
|
|
Write(Char[])
|
|
Write(Char[], Int32, Int32)
|
|
Write(Decimal)
|
|
Write(Double)
|
|
Write(Int32)
|
|
Write(Int64)
|
|
Write(Object)
|
|
Write(Single)
|
|
Write(String)
|
|
Write(String, Object)
|
|
Write(String, Object, Object)
|
|
Write(String, Object, Object, Object)
|
|
Write(String, Object[])
|
|
Write(UInt32)
|
|
Write(UInt64)
|
|
WriteAsync(Char)
|
|
WriteAsync(Char[], Int32, Int32)
|
|
WriteAsync(String)
|
|
WriteLine()
|
|
WriteLine(Boolean)
|
|
WriteLine(Char)
|
|
WriteLine(Char[])
|
|
WriteLine(Char[], Int32, Int32)
|
|
WriteLine(Decimal)
|
|
WriteLine(Double)
|
|
WriteLine(Int32)
|
|
WriteLine(Int64)
|
|
WriteLine(Object)
|
|
WriteLine(Single)
|
|
WriteLine(String)
|
|
WriteLine(String, Object)
|
|
WriteLine(String, Object, Object)
|
|
WriteLine(String, Object, Object, Object)
|
|
WriteLine(String, Object[])
|
|
WriteLine(UInt32)
|
|
WriteLine(UInt64)
|
|
WriteLineAsync()
|
|
WriteLineAsync(Char)
|
|
WriteLineAsync(Char[], Int32, Int32)
|
|
WriteLineAsync(String)
|
|
Extension Methods