Beispiel #1
0
        private static PackagePushResource GetPackagePushResource()
        {
            if (s_packagePushResource == null)
            {
                string destinationUrl = GetDestinationFeedUrl();
                s_packagePushResource = CreatePackagePushResource(destinationUrl);
            }

            return(s_packagePushResource);
        }
Beispiel #2
0
        private static Task PushPackage(PackagePushResource pushCommandResource, Stream stream)
        {
            TraceInfo($"Pushing package to {pushCommandResource.ToString()}");

            // NOTE: pushCommandResource.Push will dispose of the stream passed into it

            return(pushCommandResource.Push(stream,
                                            GetPushTimeout(),
                                            GetApiKey,
                                            new NullLogger()));
        }