public static IPackageHandler Create(string packageType, HandlerOptions options)
        {
            if (_handlers.TryGetValue(packageType, out var creator))
            {
                return(creator.Invoke(options));
            }

            throw new NotSupportedException("The provided package type is not supported");
        }
 public DotnetPackageHandler(HandlerOptions options)
 {
     _options = options;
 }
Пример #3
0
 public NodejsPackageHandler(HandlerOptions options)
 {
     _options = options;
 }