protected sealed override async Task <IVh <StreamInfo> > RecognizeMediaFormatAsync(ISubjectLoadContext ctx, Stream stream) { var fileLoadContext = ctx.Arg(nameof(ctx)).EnsureOfType <ISubjectLoadContext, ISubjectFileLoadContext>().Value; // return(await RecognizeMediaFormatAsync(fileLoadContext, stream).ConfigureAwait(false)); }
protected sealed override async Task <TSubject> DoMaterializeAsync(ISubjectLoadContext ctx, StreamInfo stream) { var fileLoadCtx = ctx.Arg(nameof(ctx)).EnsureOfType <ISubjectLoadContext, ISubjectFileLoadContext>().Value; // return(await DoMaterializeAsync(context : fileLoadCtx, stream : stream).ConfigureAwait(false)); }
protected sealed override async Task <IVh <StreamInfo> > GetSourceStreamAsync(ISubjectLoadContext ctx) { var fileLoadContext = ctx.Arg(nameof(ctx)).EnsureOfType <ISubjectLoadContext, ISubjectFileLoadContext>().Value; // return(await GetSourceStreamAsync(fileLoadContext).ConfigureAwait(false)); }