Exemple #1
0
 /// <summary>
 /// this constructor is used to initialize a <seealso cref="IOContext"/> instance with a new value for the readOnce variable. </summary>
 /// <param name="ctxt"> <seealso cref="IOContext"/> object whose information is used to create the new instance except the readOnce variable. </param>
 /// <param name="readOnce"> The new <seealso cref="IOContext"/> object will use this value for readOnce.  </param>
 public IOContext(IOContext ctxt, bool readOnce)
 {
     this.Context   = ctxt.Context;
     this.MergeInfo = ctxt.MergeInfo;
     this.FlushInfo = ctxt.FlushInfo;
     this.ReadOnce  = readOnce;
 }
Exemple #2
0
 private IOContext(bool readOnce)
 {
     this.Context   = Context_e.READ;
     this.MergeInfo = null;
     this.ReadOnce  = readOnce;
     this.FlushInfo = null;
 }
Exemple #3
0
 private IOContext(bool readOnce)
 {
     this.Context = Context_e.READ;
     this.MergeInfo = null;
     this.ReadOnce = readOnce;
     this.FlushInfo = null;
 }
Exemple #4
0
 public IOContext(FlushInfo flushInfo)
 {
     Debug.Assert(flushInfo != null);
     this.Context   = Context_e.FLUSH;
     this.MergeInfo = null;
     this.ReadOnce  = false;
     this.FlushInfo = flushInfo;
 }
Exemple #5
0
 public IOContext(FlushInfo flushInfo)
 {
     Debug.Assert(flushInfo != null);
     this.Context = Context_e.FLUSH;
     this.MergeInfo = null;
     this.ReadOnce = false;
     this.FlushInfo = flushInfo;
 }
Exemple #6
0
 private IOContext(Context_e context, MergeInfo mergeInfo)
 {
     Debug.Assert(context != Context_e.MERGE || mergeInfo != null, "MergeInfo must not be null if context is MERGE");
     Debug.Assert(context != Context_e.FLUSH, "Use IOContext(FlushInfo) to create a FLUSH IOContext");
     this.Context   = context;
     this.ReadOnce  = false;
     this.MergeInfo = mergeInfo;
     this.FlushInfo = null;
 }
Exemple #7
0
 public IOContext(Context_e context)
     : this(context, null)
 {
 }
Exemple #8
0
 private IOContext(Context_e context, MergeInfo mergeInfo)
 {
     Debug.Assert(context != Context_e.MERGE || mergeInfo != null, "MergeInfo must not be null if context is MERGE");
     Debug.Assert(context != Context_e.FLUSH, "Use IOContext(FlushInfo) to create a FLUSH IOContext");
     this.Context = context;
     this.ReadOnce = false;
     this.MergeInfo = mergeInfo;
     this.FlushInfo = null;
 }
Exemple #9
0
 public IOContext(Context_e context)
     : this(context, null)
 {
 }
Exemple #10
0
 /// <summary>
 /// this constructor is used to initialize a <seealso cref="IOContext"/> instance with a new value for the readOnce variable. </summary>
 /// <param name="ctxt"> <seealso cref="IOContext"/> object whose information is used to create the new instance except the readOnce variable. </param>
 /// <param name="readOnce"> The new <seealso cref="IOContext"/> object will use this value for readOnce.  </param>
 public IOContext(IOContext ctxt, bool readOnce)
 {
     this.Context = ctxt.Context;
     this.MergeInfo = ctxt.MergeInfo;
     this.FlushInfo = ctxt.FlushInfo;
     this.ReadOnce = readOnce;
 }