/// <summary> /// /// </summary> /// <param name="sessionID"></param> /// <returns></returns> public static object BuildResourceUrls(IAppResource resource) { var resourceUrlDictionary = new Dictionary <string, string>(); string webProtocol = ConfigurationManager.AppSettings[NeeoConstants.WebProtocol]; string apiUrl = ConfigurationManager.AppSettings[NeeoConstants.ResumableApiUrl]; foreach (var item in resource.Components) { string url = webProtocol + "://" + apiUrl + "/resource/" + (int)resource.ResourceType + "/" + resource.Name.ToLower() + "/" + (resource.isDefault ? 1 : 0) + "/" + item; resourceUrlDictionary.Add(Path.GetFileNameWithoutExtension(item), url); } return(resourceUrlDictionary); }
public DataContext(IOptions <Option> option, IHttpContextAccessor httpContext, IAppResource appResource) { this.Option = option.Value; this.contextAccessor = httpContext; this.AppResource = appResource; }
public AccountController(IAppResource sharedLocalizer, IMapper mapper, IAuthenticateService authService) { _sharedLocalizer = sharedLocalizer; this.mapper = mapper; this.authService = authService; }
public LoginViewModel(IPageService pageService, IAppResource appResource) { this.pageService = pageService; this.appResourceService = appResource; SubmitLogin = new Command(async vm => await Login()); }
public LocalizationTestController(IAppResource sharedLocalizer) { _sharedLocalizer = sharedLocalizer; }