protected KEnumerator( IKCommandEnumerable command ) { DEBUG.IndentLine( "\n-- KEnumerator( Command={0} )", command == null ? "null" : command.ToString() ); if( ( _Command = command ) == null ) throw new ArgumentNullException( "command", "Command cannot be null." ); DEBUG.Unindent(); }
protected virtual void Dispose( bool disposing ) { DEBUG.IndentLine( "\n-- KEnumerator.Dispose( Disposing={0} ) - This={1}", disposing, this ); Reset(); _Converter = null; _Command = null; DEBUG.Unindent(); }
/// <summary> /// Creates a new <see cref="KEnumeratorWCF"/> instance for the command given. /// </summary> /// <param name="command">The command this enumerator is created for.</param> public KEnumeratorWCF( IKCommandEnumerable command ) : base( command ) { DEBUG.IndentLine( "\n-- KEnumeratorWCF( Command )" ); var pars = command.Parameters.Clone(); foreach( var par in pars ) par.Value = command.Link.TransformParameterValue( par.Value ); var text = command.CommandText( iterable: true ); _EnumeratorId = Link.Proxy.EnumeratorCreate( text, pars ); DEBUG.Unindent(); }
/// <summary> /// Creates a new <see cref="KEnumeratorDirect"/> instance for the command given. /// </summary> /// <param name="command">The command this enumerator is created for.</param> public KEnumeratorDirect( IKCommandEnumerable command ) : base( command ) { DEBUG.IndentLine( "\n-- KEnumeratorDirect( Command )" ); DEBUG.Unindent(); }
IKEnumerator IKLink.CreateEnumerator( IKCommandEnumerable command ) { return this.CreateEnumerator( command ); }
/// <summary> /// Creates a new <see cref="KEnumeratorWCF"/> instance associated with the given command. /// </summary> /// <param name="command">The command the enumerator will be associated with.</param> /// <returns>The new enumerator created.</returns> public KEnumeratorWCF CreateEnumerator( IKCommandEnumerable command ) { return new KEnumeratorWCF( command ); }
/// <summary> /// Creates a new <see cref="KEnumeratorDirect"/> instance associated with the given command. /// </summary> /// <param name="command">The command the enumerator will be associated with.</param> /// <returns>The new enumerator created.</returns> public KEnumeratorDirect CreateEnumerator( IKCommandEnumerable command ) { return new KEnumeratorDirect( command ); }