public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return(null);
            }
            string s = value.ToString();

            return(AssemblyHelper.GetResourceUri(AssemblyMarker.GetType().Assembly, Prefix + s + Suffix));
        }
        public void OnLoad(ModuleLoadPhase value)
        {
            var(serviceCollection, assembly, modules, phase) = value;

            var marker = new AssemblyMarker(assembly.FullName, GetType(), phase);

            if (_assemblyMarkers.Contains(marker))
            {
                return;
            }

            _assemblyMarkers.Add(marker);

            Register(serviceCollection, assembly, modules, phase);
        }
 private bool Equals(AssemblyMarker other)
 {
     return(string.Equals(AssemblyName, other.AssemblyName) && RegistrarType == other.RegistrarType && string.Equals(Phase, other.Phase));
 }