Exemple #1
0
        public void AddOrUpdateNuGetSource(string name, DotNetCoreNuGetSourceSettings settings)
        {
            var logPrefix = $"{nameof(NuGetService)}.{nameof(AddOrUpdateNuGetSource)}";

            if (_dotNet.NuGetHasSource(name, settings))
            {
                AeroContext.Information($"{logPrefix}, Action: UpdatingSource, Name: {name}");
                _dotNet.NuGetUpdateSource(name, settings);
            }
            else
            {
                AeroContext.Information($"{logPrefix}, Action: AddingSource, Name: {name}");
                _dotNet.NuGetAddSource(name, settings);
            }
        }
Exemple #2
0
 public void NuGetUpdateSource(string name, DotNetCoreNuGetSourceSettings settings)
 {
     AeroContext.DotNetCoreNuGetUpdateSource(name, settings);
 }
Exemple #3
0
 public bool NuGetHasSource(string name, DotNetCoreNuGetSourceSettings settings)
 {
     return(AeroContext.DotNetCoreNuGetHasSource(name, settings));
 }