/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetHlsAudioSegment request) { var file = request.SegmentId + Path.GetExtension(Request.PathInfo); file = Path.Combine(_appPaths.TranscodingTempPath, file); return ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetHlsAudioSegment request) { var file = request.SegmentId + Path.GetExtension(Request.PathInfo); file = Path.Combine(_appPaths.TranscodingTempPath, file); return(ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite)); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetHlsAudioSegment request) { var file = request.SegmentId + Path.GetExtension(RequestContext.PathInfo); file = Path.Combine(_appPaths.EncodedMediaCachePath, file); return(ResultFactory.GetStaticFileResult(RequestContext, file, FileShare.ReadWrite)); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetHlsAudioSegment request) { var file = SegmentFilePrefix + request.SegmentId + Path.GetExtension(RequestContext.PathInfo); file = Path.Combine(ApplicationPaths.EncodedMediaCachePath, file); return ResultFactory.GetStaticFileResult(RequestContext, file); }
public object Get(GetHlsAudioSegment request) { var file = SegmentFilePrefix + request.SegmentId + Path.GetExtension(RequestContext.PathInfo); file = Path.Combine(ApplicationPaths.EncodedMediaCachePath, file); return(ResultFactory.GetStaticFileResult(RequestContext, file)); }
public Task<object> Get(GetHlsAudioSegment request) { return GetDynamicSegment(request, request.SegmentId); }
public Task <object> Get(GetHlsAudioSegment request) { return(GetDynamicSegment(request, request.SegmentId)); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetHlsAudioSegment request) { var file = request.SegmentId + Path.GetExtension(RequestContext.PathInfo); file = Path.Combine(_appPaths.EncodedMediaCachePath, file); return ResultFactory.GetStaticFileResult(RequestContext, file, FileShare.ReadWrite); }