コード例 #1
0
        public LicensesViewModel(ILicenseProvider licenseProvider)
        {
            Ensure.Argument.IsNotNull(licenseProvider, nameof(licenseProvider));

            Licenses = licenseProvider.GetAppLicenses()
                       .Select(keyValuePair => new License(keyValuePair.Key, keyValuePair.Value))
                       .ToImmutableList();
        }
コード例 #2
0
        public override Task Initialize()
        {
            Licenses = licenseProvider
                       .GetAppLicenses()
                       .Select(keyValuePair => new License(keyValuePair.Key, keyValuePair.Value))
                       .ToList();

            return(base.Initialize());
        }