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(); }
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(); } }