public void EnsureLoaded()
        {
            if (_loaded) return;

            var instance = new JSONIdentityProviderDiscoveryClient
            {
                Realm = _config.Realm,
                ServiceNamespace = _config.ServiceNamespace
            };
            Mvx.RegisterSingleton<IIdentityProviderClient>(instance);
            Mvx.RegisterSingleton<ISimpleWebTokenStore>(new SimpleWebTokenStore());

            var manager = Mvx.Resolve<IMvxPluginManager>();
            manager.EnsurePlatformAdaptionLoaded<PluginLoader>();

            _loaded = true;
        }
예제 #2
0
        public void EnsureLoaded()
        {
            if (_loaded)
            {
                return;
            }

            var instance = new JSONIdentityProviderDiscoveryClient();

            if (_config != default(IMvxPluginConfiguration))
            {
                instance.Realm            = _config.Realm;
                instance.ServiceNamespace = _config.ServiceNamespace;
            }

            Mvx.RegisterSingleton <IIdentityProviderClient>(instance);
            Mvx.RegisterSingleton <ISimpleWebTokenStore>(new SimpleWebTokenStore());

            var manager = Mvx.Resolve <IMvxPluginManager>();

            manager.EnsurePlatformAdaptionLoaded <PluginLoader>();

            _loaded = true;
        }