public static void UpdateRegistration(this IApplicationRegistrationService applicationRegistrationService, ApplicationInfo applicationInfo) { Argument.IsNotNull(() => applicationRegistrationService); Argument.IsNotNull(() => applicationInfo); // Just a forward call to the register application, maybe in the future we will uninstall / install applicationRegistrationService.RegisterApplication(applicationInfo); }
private void OnRegisterApplicationExecute() { var applicationInfo = ApplicationInfo; applicationInfo.SupportedExtensions.Clear(); foreach (var extension in FileAssociations.Split(new string[] { ",", ";" }, StringSplitOptions.RemoveEmptyEntries)) { applicationInfo.SupportedExtensions.Add(extension); } _applicationRegistrationService.RegisterApplication(ApplicationInfo); UpdateState(); }
public static void UpdateRegistration([NotNull] this IApplicationRegistrationService applicationRegistrationService, [NotNull] ApplicationInfo applicationInfo) { if (applicationRegistrationService == null) { throw new ArgumentNullException(nameof(applicationRegistrationService)); } if (applicationInfo == null) { throw new ArgumentNullException(nameof(applicationInfo)); } // Just a forward call to the register application, maybe in the future we will uninstall / install applicationRegistrationService.RegisterApplication(applicationInfo); }