Esempio n. 1
0
        public IMobileServiceTable Convert(MobileTableAttribute attribute)
        {
            MobileTableContext  context = _configProvider.CreateContext(attribute);
            IMobileServiceTable table   = context.Client.GetTable(context.ResolvedAttribute.TableName);

            return(table);
        }
Esempio n. 2
0
        public IMobileServiceTable <T> Convert(MobileTableAttribute attribute)
        {
            MobileTableContext context = _configProvider.CreateContext(attribute);

            // If TableName is specified, add it to the internal table cache. Now items of this type
            // will operate on the specified TableName.
            if (!string.IsNullOrEmpty(context.ResolvedAttribute.TableName))
            {
                context.Client.AddToTableNameCache(typeof(T), context.ResolvedAttribute.TableName);
            }

            IMobileServiceTable <T> table = context.Client.GetTable <T>();

            return(table);
        }
        public IAsyncCollector <T> Convert(MobileTableAttribute attribute)
        {
            MobileTableContext context = _configProvider.CreateContext(attribute);

            return(new MobileTableAsyncCollector <T>(context));
        }
Esempio n. 4
0
        public IMobileServiceClient Convert(MobileTableAttribute attribute)
        {
            MobileTableContext context = _configProvider.CreateContext(attribute);

            return(context.Client);
        }