예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }