Beispiel #1
0
 public PagedCollection(DataServiceContextWrapper context,
                        QueryOperationResponse <TConcrete> qor)
 {
     _context      = context;
     _currentPage  = (IReadOnlyList <TElement>)qor.ToList();
     _continuation = qor.GetContinuation();
 }
 public void Initialize(DataServiceContextWrapper context, string path)
 {
     Context        = context;
     _path          = path;
     _isInitialized = true;
     _propertyName  = GetProperty();
 }
Beispiel #3
0
 public StreamFetcher(DataServiceContextWrapper context, EntityBase entity, string propertyName, Client.DataServiceStreamLink link)
 {
     _context      = context;
     _entity       = entity;
     _link         = link;
     _propertyName = propertyName;
 }
Beispiel #4
0
 public PagedCollection(DataServiceContextWrapper context, DataServiceCollection <TConcrete> collection)
 {
     _context     = context;
     _currentPage = (IReadOnlyList <TElement>)collection;
     if (_currentPage != null)
     {
         _continuation = collection.Continuation;
     }
 }
Beispiel #5
0
 public ReadOnlyQueryableSet(DataServiceQuery inner, DataServiceContextWrapper context)
     : base(inner, context)
 {
 }
Beispiel #6
0
 protected void Initialize(DataServiceQuery inner,
                           DataServiceContextWrapper context)
 {
     _inner   = inner;
     _context = context;
 }
Beispiel #7
0
 // Creator - should be faster than Activator.CreateInstance
 public static PagedCollection <TElement, TConcrete> Create(DataServiceContextWrapper context,
                                                            QueryOperationResponse <TConcrete> qor)
 {
     return(new PagedCollection <TElement, TConcrete>(context, qor));
 }
Beispiel #8
0
 public void Initialize(DataServiceQuery inner, DataServiceContextWrapper context, EntityBase entity, string path)
 {
     Initialize(inner, context);
     Path   = path;
     Entity = entity;
 }
Beispiel #9
0
 public QueryableSet(DataServiceQuery inner, DataServiceContextWrapper context, EntityBase entity, string path)
     : base(inner, context)
 {
     Initialize(inner, context, entity, path);
 }