diff --git a/RegistrationService.cs b/RegistrationService.cs index 2ff7724..fcd96e3 100755 --- a/RegistrationService.cs +++ b/RegistrationService.cs @@ -542,6 +542,20 @@ public string GetLaunchUrl(string registrationId, string redirectOnExitUrl, stri /// Url that the server will postback a "pointer" url regarding /// a saved debug log that resides on s3 public string GetLaunchUrl(string registrationId, string redirectOnExitUrl, string cssUrl, string debugLogPointerUrl) + { + return GetLaunchUrl(registrationId, redirectOnExitUrl, cssUrl, debugLogPointerUrl, new Dictionary()); + } + + /// + /// Gets the url to directly launch/view the course registration in a browser + /// + /// Unique Identifier for the registration + /// Upon exit, the url that the SCORM player will redirect to + /// URL to launch + /// Url that the server will postback a "pointer" url regarding + /// a saved debug log that resides on s3 + /// Dictionary for any additional parameters that could be passed along in the request + public string GetLaunchUrl(string registrationId, string redirectOnExitUrl, string cssUrl, string debugLogPointerUrl, IDictionary parameters) { ServiceRequest request = new ServiceRequest(configuration); request.Parameters.Add("regid", registrationId); @@ -551,6 +565,9 @@ public string GetLaunchUrl(string registrationId, string redirectOnExitUrl, stri request.Parameters.Add("cssurl", cssUrl); if (!String.IsNullOrEmpty(debugLogPointerUrl)) request.Parameters.Add("saveDebugLogPointerUrl", debugLogPointerUrl); + if (parameters != null) + foreach (var parameter in parameters) + request.Parameters.Add(parameter.Key, parameter.Value); return request.ConstructUrl("rustici.registration.launch"); }