示例#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();
    }
示例#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;
 }