Пример #1
0
 internal DryadLinqQuery(DryadLinqProviderBase queryProvider,
                         DataProvider dataProvider)
 {
     this.m_queryProvider = queryProvider;
     this.m_dataProvider  = dataProvider;
     this.m_queryExecutor = null;
 }
Пример #2
0
        internal static HpcLinqContext GetContext(DryadLinqProviderBase provider)
        {
            HpcLinqContext context = provider.Context;

            Debug.Assert(context != null, "A context should always be associated with a HpcLinqQuery<T>");
            context.ThrowIfDisposed();
            return(context);
        }
Пример #3
0
        internal static DryadLinqContext GetContext(IQueryProvider provider)
        {
            DryadLinqProviderBase baseProvider = provider as DryadLinqProviderBase;

            if (baseProvider == null)
            {
                throw new DryadLinqException("Must be DryadLINQ query provider.");
            }
            DryadLinqContext context = baseProvider.Context;

            context.ThrowIfDisposed();
            return(context);
        }