public override void GetResourceStream(string resourcePath, Action<Stream> streamAction)
        {
            resourcePath = MvxTouchFileStoreService.ResScheme + resourcePath;
            var fileService = new MvxTouchFileStoreService();
            if (!fileService.TryReadBinaryFile(resourcePath, (stream) =>
                                                                 {
                                                                     streamAction(stream);
                                                                     return true;
                                                                 }))
#warning TODO - better exception here!
                throw new MvxException();
        }
示例#2
0
        public override void GetResourceStream(string resourcePath, Action <Stream> streamAction)
        {
            resourcePath = MvxTouchFileStoreService.ResScheme + resourcePath;
            var fileService = new MvxTouchFileStoreService();

            if (!fileService.TryReadBinaryFile(resourcePath, (stream) =>
            {
                streamAction(stream);
                return(true);
            }))
#warning TODO - better exception here!
            {
                throw new MvxException();
            }
        }