Download MovieTube.Web/Services/ConfigProvider.cs from niobures/VideoSearch: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/niobures/VideoSearch/resolve/main/MovieTube.Web/Services/ConfigProvider.cs
- Command line
-
hf download hf://niobures/VideoSearch/MovieTube.Web/Services/ConfigProvider.cs
-
curl -L -o ConfigProvider.cs https://huggingface.co/niobures/VideoSearch/resolve/main/MovieTube.Web/Services/ConfigProvider.cs
550 Bytes
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Configuration; | |
| namespace MovieTube.Web.Services | |
| { | |
| public class ConfigProvider : IConfigProvider | |
| { | |
| public string ImagePath | |
| { | |
| get { return ConfigurationManager.AppSettings["ImagePath"]; } | |
| } | |
| public string RootUrl | |
| { | |
| get | |
| { | |
| return HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority); | |
| } | |
| } | |
| } | |
| } |