Example #1
0
		/// <summary>
		/// Creates a new instance of <see cref="KParser"/> associated with the given factory.
		/// </summary>
		/// <param name="factory">The factory this parser will be associated with.</param>
		public KParser( IKFactory factory )
		{
			DEBUG.IndentLine( "\n-- KParser( Factory={0} )", factory == null ? "null" : factory.ToString() );
			if( ( _Factory = factory ) == null ) throw new ArgumentNullException( "factory", "Factory cannot be null." );
			DEBUG.Unindent();
		}
Example #2
0
		/// <summary>
		/// Creates a new	<see cref="KLinkWCF"/> for the personality of the database defined by the factory argument, and
		/// connects to the service located by the endpoint argument using the connection package given.
		/// </summary>
		/// <param name="factory">The factory defining the personality of the database.</param>
		/// <param name="endpoint">The endpoint to use to locate the WCF service.</param>
		/// <param name="package">The connection package to use by the service to modulate how it will connect with the real
		/// underlying database, if needed, or null if it is not needed.</param>
		public KLinkWCF( IKFactory factory, string endpoint, DeepObject package = null ) : base( factory )
		{
			DEBUG.IndentLine( "\n-- KLinkWCF( Factory, EndPoint={0}, Package={1} )", endpoint ?? "<null>", package == null ? "<null>" : package.ToString() );
			ProxyConnect( endpoint, package );
			DEBUG.Unindent();
		}
Example #3
0
		protected virtual void Dispose( bool disposing )
		{
			DEBUG.IndentLine( "\n-- KParser.Dispose( Disposing={0} ) - This={1}", disposing, this );
			_Factory = null;
			DEBUG.Unindent();
		}
Example #4
0
		/// <summary>
		/// Creates a new	<see cref="KLinkWCF"/> for the personality of the database defined by the factory argument.
		/// </summary>
		/// <param name="factory">The factory defining the personality of the database.</param>
		public KLinkWCF( IKFactory factory ) : base( factory )
		{
			DEBUG.IndentLine( "\n-- KLinkWCF( Factory )" );
			DEBUG.Unindent();
		}