public void Configure(string appIdentifier,
string appVersionInformation = null,
string userID = null,
string contactInformation = null,
Func<Exception, string> descriptionLoader = null,
string apiBase = "https://rink.hockeyapp.net",
string userAgentString = null,
bool keepRunning = false)
{
if (String.IsNullOrWhiteSpace(apiBase))
{
throw new Exception("ApiBase must not be empty!");
}
logger.Info("Configure HockeyClientWPF with appIdentifier={0}, userID={1}, contactInformation={2}, descriptionLoader available{3}, sendCrashesAutomatically={4}, apiBase={5}",
new object[] { appIdentifier, userID, contactInformation, (descriptionLoader != null).ToString(),apiBase });
string myAppVersion= string.IsNullOrEmpty(appVersionInformation)?
Assembly.GetCallingAssembly().GetName().Version.ToString()
:appVersionInformation;
HockeyClient.ConfigureInternal(appIdentifier,
myAppVersion,
apiBase: apiBase,
userID: userID,
contactInformation: contactInformation,
userAgentName: HockeyConstants.USER_AGENT_STRING,
sdkName: HockeyConstants.SDKNAME,
sdkVersion: HockeyConstants.SDKVERSION,
os: Environment.OSVersion.Platform.ToString(),
osVersion: Environment.OSVersion.Version.ToString() + Environment.OSVersion.ServicePack);
this._crashHandler = new CrashHandler(HockeyClient.Current, descriptionLoader, keepRunning);
}