public Package(string directory, string name, string versionName, string license) { RootDirectory = directory; Name = name; License = license; VersionName = versionName; LoadedTypes = new ObservableCollection <Type>(); LoadedAssemblies = new ObservableCollection <PackageAssembly>(); Dependencies = new ObservableCollection <PackageDependency>(); LoadedCustomNodes = new ObservableCollection <CustomNodeInfo>(); AdditionalFiles = new ObservableCollection <PackageFileInfo>(); Header = PackageUploadBuilder.NewPackageHeader(this); }
public PackageUploadHandle Publish(Package l, List <string> files, bool isNewVersion, bool isTestMode) { this.OnRequestAuthentication(); var nv = new ValidateAuth(); var pkgResponse = Client.ExecuteAndDeserialize(nv); if (pkgResponse == null) { throw new AuthenticationException( "It looks like you're not logged into Autodesk 360. Log in to submit a package."); } var packageUploadHandle = new PackageUploadHandle(PackageUploadBuilder.NewPackageHeader(l)); return(PublishPackage(isNewVersion, l, files, packageUploadHandle, isTestMode)); }
internal PackageUploadHandle Publish(Package package, List <string> files, bool isNewVersion, bool isTestMode) { var packageUploadHandle = new PackageUploadHandle(PackageUploadBuilder.NewPackageHeader(package)); return(PublishPackage(isNewVersion, package, files, packageUploadHandle, isTestMode)); }