private void Initialize(HttpContext context) { string productionFolderPath = ConfigurationManager.AppSettings["XFormProductionFolder"]; if (String.IsNullOrEmpty(productionFolderPath)) { throw new InvalidOperationException("XForm.IIS requires web.config to contain appSetting 'XFormProductionFolder'."); } if (!Path.IsPathRooted(productionFolderPath)) { productionFolderPath = context.Server.MapPath(productionFolderPath); } // Enable XForm Native Acceleration NativeAccelerator.Enable(); // Build the Database Context XDatabaseContext db = new XDatabaseContext(); db.RequestedAsOfDateTime = DateTime.MaxValue; db.StreamProvider = new StreamProviderCache(new LocalFileStreamProvider(productionFolderPath)); db.Runner = new WorkflowRunner(db); // Build and save an HttpService instance to run queries s_httpService = new HttpService(db); }
public void Comparer_Where() { Comparer_AllTypes(); NativeAccelerator.Enable(); Comparer_AllTypes(); }