Questions tagged [resourceproviderfactory]

11 questions
7
votes
1 answer

Custom ResourceProviderFactory Dependency Injection

Is there anywhere in ASP.NET MVC where you can get a reference to the ResourceProviderFactory that is instantiated in order to perform Property Injection to add a custom DB Implementation to retrieve the resources from? I have a custom resource…
3
votes
1 answer

ASP.NET Custom Localization

I've done quite a bit of research and I'm not sure how I should proceed with this. Usual localization would change only when the language changes, so Hello for french would be Bonjour but my application needs to have special keywords for for certain…
Michael
  • 3,416
  • 1
  • 19
  • 21
3
votes
1 answer

ResourceProviderFactory periodic refreshing

I've created a custom resource provider which returns strings from our database to use for whatever. The issue is I haven't found a way to "bust" the cache on these items and reload them from the database. Ideally I'd do this every x minutes or…
mjallday
  • 9,796
  • 9
  • 51
  • 71
3
votes
1 answer

Empty asp.net Resources Cache, provided by SQLResourceProvider

I've just implemented a SQLResource provider in my MVC2 application. When I change something in the database by hand or by a webform, I want the ResourceProvider to drop all it's resources and fetch them again from the database. Does any one now how…
JonHendrix
  • 933
  • 15
  • 28
3
votes
4 answers

Angular.js resourceProvider returns $promise with data

Given angular.js service: angular.module('mymodule').factory('Products', ['$resource', function($resource) { return $resource('/path/to/getProducts', {}, { find: { method: 'GET', isArray:…
2
votes
1 answer

Is there any way to get the default ResourceProviderFactory of an asp.net app?

I've succesfully implemented a custom localization provider for my asp.net application. I'm working now in a fall-back scenario where for some reason there's no way of creating the CustomResourceProviderFactory or if I don't want to use it in…
pollirrata
  • 5,188
  • 2
  • 32
  • 50
1
vote
1 answer

.NET MVC Localization (resourceprovider) implementation not working correctly

i'm currently implementing a localized website. I've created a custom ResourceProvider + Factory for storing resources in a database. This all works, i'm storing data as follows: resourceid | url (null) | type (null) | name |…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
1
vote
1 answer

Inject with different scope when using DbContext with custom resource provider

In an application I have the following components (among others): MyDbContext : Entity framework data access DBResourceProviderFactory : A custom ResourceProviderFactory providing a custom IResourceProvider (called DBResourceProvider...) Other…
0
votes
2 answers

How can I get Visual Studio to fully accept my MySQL Data Source?

I am able to successfully get through the "Add New Data Source" steps in my C# project in Visual Studio, and get a connection to my MySQL database. However, when I then try to proceed (Note: AFTER it says my connection was successful, and I am able…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

How do I control the lifetime of a custom IResourceProvider?

I've taken this approach to injecting a custom resource provider in my ASP.NET MVC application, but I'm having some problems with object lifetime management. I'm using Castle Windsor, so I have the following implementation of the factory: public…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
0
votes
1 answer

GetObject for meta:resourcekey not being called in IResourceProvider

I need to move a site's .resx files to a database and implement a Custom Resource Provider using the IResourceProvider interface. I have followed the example at:…
Will
  • 11
  • 2