public BundleMetainfo Create(string filename, DumpAnalysisInput input) { lock (sync) { string bundleId = CreateUniqueBundleId(); var bundleInfo = new BundleMetainfo() { BundleId = bundleId, BundleFileName = filename, Created = DateTime.Now, Status = BundleStatus.Created }; bundleInfo.CustomProperties = input.CustomProperties; if (!string.IsNullOrEmpty(input.JiraIssue)) { bundleInfo.CustomProperties["ref"] = input.JiraIssue; } if (!string.IsNullOrEmpty(input.FriendlyName)) { bundleInfo.CustomProperties["note"] = input.FriendlyName; } bundles[bundleId] = bundleInfo; storage.Store(bundleInfo); return(bundleInfo); } }
public BundleMetainfo Create(string filename, IDictionary <string, string> properties) { lock (sync) { string bundleId = CreateUniqueBundleId(); var bundleInfo = new BundleMetainfo() { BundleId = bundleId, BundleFileName = filename, Created = DateTime.Now, Status = BundleStatus.Created }; bundleInfo.CustomProperties = properties; bundles[bundleId] = bundleInfo; storage.Store(bundleInfo); return(bundleInfo); } }