protected LoadedProviderViewModel GetViewModel(LoadedProviderMetadata provider) => _providerViewModelDelegate(provider);
Пример #2
0
#pragma warning disable IDE0060 // Remove unused parameter
        private static LoadedProviderViewModel GetViewModel(IServiceProvider serviceProvider, LoadedProviderMetadata provider) =>
#pragma warning restore IDE0060 // Remove unused parameter
        new LoadedProviderViewModel()
        {
            AssemblyVersion  = provider.AssemblyName.Version.ToString(),
            Details          = provider.Details,
            OriginatingFile  = Path.GetFileName(provider.OriginatingFile),
            ProviderTypeName = provider.ProviderTypeName,
            Capabilities     = GetProviderCapabilities(provider.ProviderType)
        };
Пример #3
0
#pragma warning disable IDE0060 // Remove unused parameter
        private static LoadedProviderViewModel GetViewModel(IServiceProvider serviceProvider, LoadedProviderMetadata provider) =>
#pragma warning restore IDE0060 // Remove unused parameter
        new LoadedProviderViewModel()
        {
            AssemblyVersion        = provider.AssemblyName.Version.ToString(),
            AssemblyPublicKey      = provider.AssemblyName.GetPublicKey(),
            AssemblyPublicKeyToken = provider.AssemblyName.GetPublicKeyToken(),
            Details = provider.Details,
            IsRekeyableObjectProvider = provider.IsRekeyableObjectProvider,
            OriginatingFile           = Path.GetFileName(provider.OriginatingFile),
            ProviderTypeName          = provider.ProviderTypeName,
            SvgImage = provider.SvgImage
        };