Ejemplo n.º 1
0
        /// <summary>
        /// Contructor.
        /// </summary>
        public MorphologyEngine
        (
            [NotNull] ManagedClient64 client,
            [NotNull] string prefix,
            [NotNull] string database
        )
        {
            if (ReferenceEquals(client, null))
            {
                throw new ArgumentNullException("client");
            }
            if (string.IsNullOrEmpty(prefix))
            {
                throw new ArgumentNullException("prefix");
            }
            if (string.IsNullOrEmpty(database))
            {
                throw new ArgumentNullException("database");
            }

            _client   = client;
            _provider = new IrbisMorphologyProvider
                        (
                prefix,
                database,
                client
                        );
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public MorphologyEngine
        (
            [NotNull] ManagedClient64 client
        )
        {
            if (ReferenceEquals(client, null))
            {
                throw new ArgumentNullException("client");
            }

            _client   = client;
            _provider = new IrbisMorphologyProvider
                        (
                client
                        );
        }