protected void GetWorkQueueDataSource(object sender, ObjectDataSourceEventArgs e) { if (_dataSource == null) { _dataSource = new WorkQueueDataSource(); _dataSource.Partition = ServerPartition; _dataSource.WorkQueueFoundSet += delegate(IList<WorkQueueSummary> newlist) { WorkQueueItems = new WorkQueueItemCollection(newlist); }; } e.ObjectInstance = _dataSource; if (DataSourceCreated != null) DataSourceCreated(_dataSource); }
protected void SetDataSourceFilter(WorkQueueDataSource thesource) { thesource.SearchKeys = WorkQueueKeys ?? new List<ServerEntityKey>(); }