Ejemplo n.º 1
0
    protected static void StartNuServeOn(string packageListUri, string packagePushUri)
    {
        StopNuServe();

            endpointSettings = new EndpointSettings()
            {
                PackageListUri = packageListUri,
                PackageManagerUri = packagePushUri
            };
            var log = Substitute.For<ILog>();
            server = new SelfHostingPackageServer(endpointSettings, log);

            server.Start();
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the NuGetPackageServer class.
 /// </summary>
 /// <param name="settings"></param>
 public SelfHostingPackageServer(EndpointSettings settings, ILog log)
 {
     this.settings = settings;
     this.log = log;
 }