Пример #1
0
        public static NativeSource ToNative(this Source @this)
        {
            switch (@this)
            {
            case Source.Cache:
                return(NativeSource.Cache);

            case Source.Server:
                return(NativeSource.Server);

            default:
                return(NativeSource.Default);
            }
        }
Пример #2
0
        public async Task <IQuerySnapshot <T> > GetDocumentsAsync <T>(Source source = Source.Default)
        {
            var querySnapshot = (QuerySnapshot)await _wrapped.Get(source.ToNative());

            return(new QuerySnapshotWrapper <T>(querySnapshot));
        }
 public async Task <IQuerySnapshot <T> > GetDocumentsAsync <T>(Source source = Source.Default)
 {
     return(new QuerySnapshotWrapper <T>(await _wrapped.Get(source.ToNative()).AsAsync <QuerySnapshot>()));
 }