Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-initializing the Scorm Config after the Secret Key and Application Id Change #22

Open
musicm122 opened this issue Jan 20, 2016 · 0 comments

Comments

@musicm122
Copy link
Contributor

Ello,
I've been trying to figure out a way to re-init the Scorm Configuration when handling multiple App Ids and Secret Key Combinations.

I've tried doing this:

ScormCloud.Configuration = new Configuration(ScormServiceUrl, AppliationId, SecretKey, Origin);

in a call like this:

    public static void UpdateScormConfig(string origin = "", string appId = "", string secretKey = "")
        {
            origin = string.IsNullOrWhiteSpace(origin) ? Origin : origin;
            appId = string.IsNullOrWhiteSpace(appId) ? AppliationId : appId;
            secretKey = string.IsNullOrWhiteSpace(secretKey) ? SecretKey : secretKey;

            SetKeys(appId, secretKey);
            ScormCloud.Configuration = new Configuration(ScormServiceUrl, appId, secretKey, origin);
            IsInitialized = true;
        }

but the existing configuration persists when I access

ScormCloud.CourseService.GetCourseList();

as its ref'd config has already been set. in the various services such as 'CourseService'
and cant be touched directly.

Is there a way around this currently that I'm not seeing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant