Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 public DataContext(IOptions <Option> option, IHttpContextAccessor httpContext, IAppResource appResource)
 {
     this.Option          = option.Value;
     this.contextAccessor = httpContext;
     this.AppResource     = appResource;
 }
Ejemplo n.º 3
0
 public AccountController(IAppResource sharedLocalizer, IMapper mapper, IAuthenticateService authService)
 {
     _sharedLocalizer = sharedLocalizer;
     this.mapper      = mapper;
     this.authService = authService;
 }
Ejemplo n.º 4
0
 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;
 }