示例#1
0
		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();
		}
示例#2
0
		protected virtual void Dispose( bool disposing )
		{
			DEBUG.IndentLine( "\n-- KEnumerator.Dispose( Disposing={0} ) - This={1}", disposing, this );

			Reset();
			_Converter = null;
			_Command = null;

			DEBUG.Unindent();
		}
示例#3
0
		/// <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();
		}
示例#4
0
		/// <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();
		}
示例#5
0
		IKEnumerator IKLink.CreateEnumerator( IKCommandEnumerable command )
		{
			return this.CreateEnumerator( command );
		}
示例#6
0
		/// <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 );
		}
示例#7
0
		/// <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 );
		}