示例#1
0
		public CiteProcRunner(StyleInfo style, GetDatabaseDelegate databaseProvider): this()
		{
			this.databaseProvider = databaseProvider;
			this.style = style;

			try
			{
				engine = Call(CreateEngineCommand, this.style.GetXml());                
				if (engine == null) throw new InvalidOperationException();
			}
			catch
			{
				throw new FailedToCreateCiteProcEngineForStyleException(style);
			}
		}
示例#2
0
        public CiteProcRunner(StyleInfo style, GetDatabaseDelegate databaseProvider) : this()
        {
            this.databaseProvider = databaseProvider;
            this.style            = style;

            try
            {
                engine = Call(CreateEngineCommand, this.style.GetXml());
                if (engine == null)
                {
                    throw new InvalidOperationException();
                }
            }
            catch
            {
                throw new FailedToCreateCiteProcEngineForStyleException(style);
            }
        }