Caliburn.Micro.PhoneContainer.RegisterWithAppSettings C# (CSharp) Метод

RegisterWithAppSettings() публичный Метод

Registers the service as a singleton stored in the app settings.
public RegisterWithAppSettings ( Type service, string appSettingsKey, Type implementation ) : void
service System.Type The service.
appSettingsKey string The app settings key.
implementation System.Type The implementation.
Результат void
        public void RegisterWithAppSettings(Type service, string appSettingsKey, Type implementation) {
            RegisterHandler(service, null, () => {
                if(IsolatedStorageSettings.ApplicationSettings.Contains(appSettingsKey ?? service.FullName)) {
                    return IsolatedStorageSettings.ApplicationSettings[appSettingsKey ?? service.FullName];
                }

                return BuildInstance(implementation);
            });
        }