public static HashAlgorithm Create(string algorithm, LibraryName library = LibraryName.unknown) { if (library == LibraryName.unknown) { library = DefaultLibrary; } switch (library) { case LibraryName.libssl_so_1_1: return(OpenSSL11_libssl_so_1_1_HashAlgorithm.Create(algorithm)); case LibraryName.libssl_so_1_1_0: return(OpenSSL11_libssl_so_1_1_0_HashAlgorithm.Create(algorithm)); case LibraryName.libcrypto_dll: return(OpenSSL11_libcrypto_dll_HashAlgorithm.Create(algorithm)); case LibraryName.libcrypto_x64_dll: return(OpenSSL11_libcrypto_x64_dll_HashAlgorithm.Create(algorithm)); case LibraryName.libcrypto_1_1_dll: return(OpenSSL11_libcrypto_1_1_dll_HashAlgorithm.Create(algorithm)); case LibraryName.libcrypto_1_1_x64_dll: return(OpenSSL11_libcrypto_1_1_x64_dll_HashAlgorithm.Create(algorithm)); //case LibraryName.libssl: default: return(OpenSSL11_libssl_HashAlgorithm.Create(algorithm)); } }
public static string OpenSSL_version(LibraryName library = LibraryName.unknown) { if (library == LibraryName.unknown) { library = DefaultLibrary; } switch (library) { case LibraryName.libssl_so_1_1: return(Marshal.PtrToStringAuto(InteropOpenSSL11_libssl_so_1_1.OpenSSL_version())); case LibraryName.libssl_so_1_1_0: return(Marshal.PtrToStringAuto(InteropOpenSSL11_libssl_so_1_1_0.OpenSSL_version())); case LibraryName.libcrypto_dll: return(Marshal.PtrToStringAuto(InteropOpenSSL11_libcrypto_dll.OpenSSL_version())); case LibraryName.libcrypto_x64_dll: return(Marshal.PtrToStringAuto(InteropOpenSSL11_libcrypto_x64_dll.OpenSSL_version())); case LibraryName.libcrypto_1_1_dll: return(Marshal.PtrToStringAuto(InteropOpenSSL11_libcrypto_1_1_dll.OpenSSL_version())); case LibraryName.libcrypto_1_1_x64_dll: return(Marshal.PtrToStringAuto(InteropOpenSSL11_libcrypto_1_1_x64_dll.OpenSSL_version())); //case LibraryName.libssl: default: return(Marshal.PtrToStringAuto(InteropOpenSSL11_libssl.OpenSSL_version())); } }
public virtual void Setup(Driver driver) { // driver.Options.IncludeDirs.Add(@"C:\git-sdk-64\mingw64\x86_64-w64-mingw32\include"); // driver.Options.IncludeDirs.Add(@"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include"); // driver.Options.IncludeDirs.Add(@"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt"); // driver.Options.IncludeDirs.Add(@"C:\Program Files (x86)\Windows Kits\8.1\Include\km\crt"); driver.Options.IncludeDirs.Add(@"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include"); driver.Options.LibraryName = DllName; driver.Options.IncludeDirs.Add(_includeDir.FullName); driver.Options.OutputDir = Path.Combine(_outputDir.FullName, LibraryNameSpace); driver.Options.OutputNamespace = "FFmpeg"; driver.Options.CustomDllImport = LibraryName.ToUpper(CultureInfo.InvariantCulture) + "_DLL_NAME"; // driver.Options.OutputClass = LibraryNameSpace; string combine = Path.Combine(_includeDir.FullName, LibraryNameSpace); foreach (FileInfo headerFile in Directory.GetFiles(combine).Select(a => new FileInfo(a))) { string item = Path.Combine(LibraryNameSpace, headerFile.Name); if (ShouldIncludeHeader(headerFile)) { driver.Options.Headers.Add(item); } } foreach (FFmpegSubLibrary dependentLibrary in DependentLibraries) { string outputNamespace = dependentLibrary.OutputNamespace; if (!driver.Options.DependentNameSpaces.Contains(outputNamespace)) { driver.Options.DependentNameSpaces.Add(outputNamespace); } } }
protected override void PreInitialize() { base.PreInitialize(); var lib = Descriptor.Library; if (lib == null) { lib = "work"; } LibraryName = lib; ImpEntityName = "implementation"; ImpFileName = lib + "_" + ImpEntityName + ".vhd"; CreationDate = DateTime.Now.ToString(); Version = "1.00.a"; int index = LibraryName.IndexOf('_'); if (index > 0) { TopEntityName = LibraryName.Remove(index); } else { TopEntityName = LibraryName; } TopFileName = lib + "_" + TopEntityName + ".vhd"; }
private string GetImageSource(string imageName, string imageType) { string libraryUrl = LibraryName.ToLower() + "/" + ChildImageLibrary.ToLower(); string imageUrl = imageName.ToLower() + imageType.ToLower(); string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, imageUrl, ContentType, currentProviderUrlName); return(scr); }
private string GetVideoSource(string videoName, string videoType) { string libraryUrl = LibraryName.ToLower(); string videoUrl = videoName.ToLower() + videoType.ToLower(); string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, videoUrl, "videos", currentProviderUrlName); return(scr); }
public static VersionLibrary FromJSON(JObject json, MinecraftProfile profile) { VersionLibrary lib = new VersionLibrary(); lib.JSON = json; lib.LibraryName = LibraryName.Parse(json["name"].ToString()); lib.Downloads = new LibraryDownloads(json, profile, lib); return(lib); }
private string GetVideodHref(string videoName) { string documentUrl = videoName.ToLower(); string libraryUrl = LibraryName.ToLower() + "/" + ChildVideoLibrary.ToLower(); string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetDownloadButtonSource(libraryUrl, documentUrl, "videos", currentProviderUrlName); return(href); }
public override int GetHashCode() { int result = base.GetHashCode(); result = (result * 397) ^ LibraryId.GetHashCode(); result = (result * 397) ^ LibraryName.GetHashCode(); result = (result * 397) ^ LibraryPicture.GetHashCode(); result = (result * 397) ^ Title.GetHashCode(); result = (result * 397) ^ Author.GetHashCode(); result = (result * 397) ^ Isbn.GetHashCode(); result = (result * 397) ^ PublishYear.GetHashCode(); return(result); }
public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } var other = (BookSearchResult)obj; return(LibraryId.Equals(other.LibraryId) && LibraryName.Equals(other.LibraryName) && LibraryPicture.Equals(other.LibraryPicture) && Title.Equals(other.Title) && Author.Equals(other.Author) && PublishYear.Equals(other.PublishYear) && Isbn.Equals(other.Isbn)); }
public ILibrary GetLibrary(LibraryName library) { switch (library) { case LibraryName.Genesis: return(genesisService); case LibraryName.ZLibrary: return(null); case LibraryName.Gutenberg: return(gutenbergService); default: throw new NotImplementedException(); } }
private string GetImageHref(string imageName) { string libraryUrl = LibraryName.ToLower() + "/" + ChildImageLibrary.ToLower(); string imageUrl = imageName.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, imageUrl, PageName.ToLower() + "/images", currentProviderUrlName, this.Culture); return(href); }
private string GetVideoSource(string videoName, string videoType) { string libraryUrl = LibraryName.ToLower(); string videoUrl = videoName.ToLower() + videoType.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, videoUrl, "videos", currentProviderUrlName); return(scr); }
private string GetImageSource(bool isBaseUrlIncluded, string imageName, string imageType) { string libraryUrl = LibraryName.ToLower(); string imageUrl = imageName.ToLower() + imageType.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(isBaseUrlIncluded, libraryUrl, imageUrl, url, ContentType, currentProviderUrlName, this.Culture); return(scr); }
private string GetVideodHref(bool isBaseUrlIncluded, string videoName) { string documentUrl = videoName.ToLower(); string libraryUrl = LibraryName.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetDownloadButtonSource(isBaseUrlIncluded, libraryUrl, documentUrl, url, "videos", currentProviderUrlName); return(href); }
private string GetDownloadHref(string documentName, string contentType) { string libraryUrl = LibraryName.ToLower(); string documentUrl = documentName.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetDownloadButtonSource(libraryUrl, documentUrl, contentType, currentProviderUrlName); return(href); }
private string GetImageSource(string imageName, string imageType) { string libraryUrl = LibraryName.ToLower(); string imageUrl = imageName.ToLower() + imageType.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, imageUrl, "images", currentProviderUrlName); return(scr.TrimStart('b', '-', 'g')); }
private string GetDocumentHref(bool isBaseUrlIncluded, string documentName, string contentType) { string libraryUrl = LibraryName.ToLower() + "/" + ChildDocumentLibrary.ToLower(); string documentUrl = documentName.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(isBaseUrlIncluded, libraryUrl, documentUrl, url, contentType, currentProviderUrlName, this.Culture); return(href); }
private string GetImageSource(string imageName, string imageType) { currentProviderUrlName = BAT.Arrange(this.TestName).ExecuteArrangement("GetCurrentProviderUrlName").Result.Values["CurrentProviderUrlName"]; string libraryUrl = LibraryName.ToLower() + "/" + ChildImageLibrary.ToLower(); string imageUrl = imageName.ToLower() + imageType.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, imageUrl, "images", currentProviderUrlName); return(scr); }
private string GetDocumentHref(bool isBaseUrlIncluded) { currentProviderUrlName = BAT.Arrange(this.TestName).ExecuteArrangement("GetCurrentProviderUrlName").Result.Values["CurrentProviderUrlName"]; string libraryUrl = LibraryName.ToLower(); string documentUrl = DocumentName.ToLower() + DocumentType.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(isBaseUrlIncluded, libraryUrl, documentUrl, url, "docs", currentProviderUrlName); return(href); }
private string GetVideoSource() { currentProviderUrlName = BAT.Arrange(this.TestName).ExecuteArrangement("GetCurrentProviderUrlName").Result.Values["CurrentProviderUrlName"]; string libraryUrl = LibraryName.ToLower(); string videoUrl = VideoName1.ToLower() + VideoType; string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, videoUrl, "videos", currentProviderUrlName); return(scr); }
private string GetDocumentHref(string documentName, string contentType) { string libraryUrl = LibraryName.ToLower(); string documentUrl = documentName.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { Uri uri = new Uri(ActiveBrowser.Url); url = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port + "/"; } string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, documentUrl, contentType, currentProviderUrlName, this.Culture); return(href); }
private void VerifyFrontend() { currentProviderUrlName = BAT.Arrange(EditAndChangeSelectedImageArrangement).ExecuteArrangement("GetCurrentProviderUrlName").Result.Values["CurrentProviderUrlName"]; BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture); string libraryUrl = LibraryName.ToLower(); string imageUrl = ImageName.ToLower() + ImageType.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, imageUrl, "images", currentProviderUrlName); BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().VerifyImage(ImageNewName, ImageAltText1, scr); }
private void VerifyFrontend() { currentProviderUrlName = BAT.Arrange(EditAndChangeSelectedDocumentArrangement).ExecuteArrangement("GetCurrentProviderUrlName").Result.Values["CurrentProviderUrlName"]; BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture); string libraryUrl = LibraryName.ToLower(); string documentUrl = DocumentName1.ToLower() + DocumentType.ToLower(); string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(false, libraryUrl, documentUrl, url, "docs", currentProviderUrlName); BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().VerifyDocument(DocumentNewName, href); }
private void VerifyFrontend() { currentProviderUrlName = BAT.Arrange(this.TestName).ExecuteArrangement("GetCurrentProviderUrlName").Result.Values["CurrentProviderUrlName"]; BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture); string libraryUrl = LibraryName.ToLower() + "/" + ChildLibrary.ToLower() + "/" + NextChildLibrary.ToLower(); string imageUrl = VideoName3.ToLower() + VideoType; string url; if (this.Culture == null) { url = this.BaseUrl; } else { url = ActiveBrowser.Url.Substring(0, 20); } string src = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(false, libraryUrl, imageUrl, url, "videos", currentProviderUrlName); BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().VerifyVideo(src); }
public static string SSLeay_version(LibraryName library = LibraryName.unknown) { if (library == LibraryName.unknown) { library = DefaultLibrary; } switch (library) { case LibraryName.libssl_so_1_0: return(Marshal.PtrToStringAuto(InteropOpenSSL10_libssl_so_1_0.SSLeay_version())); case LibraryName.libssl_so_1_0_0: return(Marshal.PtrToStringAuto(InteropOpenSSL10_libssl_so_1_0_0.SSLeay_version())); case LibraryName.libeay32_dll: return(Marshal.PtrToStringAuto(InteropOpenSSL10_libeay32_dll.SSLeay_version())); //case LibraryName.libssl: default: return(Marshal.PtrToStringAuto(InteropOpenSSL10_libssl.SSLeay_version())); } }
protected override void PreInitialize() { base.PreInitialize(); var lib = Descriptor.Library; if (lib == null) { lib = "work"; } LibraryName = lib; ImpEntityName = "implementation"; ImpFileName = lib + "_" + ImpEntityName + ".vhd"; CreationDate = DateTime.Now.ToString(); Version = "1.00.a"; AXIDataWidth = SLVDWidth; AXIAddrWidth = 32; AXIMinSize = "000001FF"; UseWRSTRB = 0; DPhaseTimeout = 8; BaseAddr = "FFFFFFFF"; HighAddr = "00000000"; NumMem = 1; SLVAWidth = 32; UserSLVNumReg = NumRegs; int index = LibraryName.IndexOf('_'); if (index > 0) { TopEntityName = LibraryName.Remove(index); } else { TopEntityName = LibraryName; } TopFileName = lib + "_" + TopEntityName + ".vhd"; }
public Ammo() : base() { LibraryName = Utils.GetLibraryName(GetType()); WeaponName ??= LibraryName.Replace("ttt_ammo_", "ttt_weapon_"); }
public override int GetHashCode() { return(LibraryName.GetHashCode() ^ DocumentName.GetHashCode()); }
public void SelectSortedDocumentsInTableView() { BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectRadioButtonOption(WidgetDesignerRadioButtonIds.CurrentlyOpenLibrary); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInSortingSelector("Title ASC"); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInListTemplateSelector("DocumentsTable"); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); BATFeather.Wrappers().Backend().Pages().PageZoneEditorMediaWrapper().VerifyCorrectOrderOfDocumentsInTableView(DocumentBaseTitle + 1, DocumentBaseTitle + 2, DocumentBaseTitle + 3); foreach (var doc in this.documentTitles) { if (doc.Equals("Document1")) { BATFeather.Wrappers().Backend().Pages().PageZoneEditorMediaWrapper().VerifyDocumentInTableView(doc, this.GetDocumentHref(doc, PageName + "/" + ContentType, LibraryName.ToLower()), this.Culture); } else { BATFeather.Wrappers().Backend().Pages().PageZoneEditorMediaWrapper().VerifyDocumentInTableView(doc, this.GetDocumentHref(doc, PageName + "/" + ContentType, AnotherDocumentLibraryTitle.ToLower()), this.Culture); } } BATFeather.Wrappers().Backend().Pages().PageZoneEditorMediaWrapper().VerifyDocumentIconOnTemplate(DocumentType, true); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), false, this.Culture); BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyCorrectOrderOfDocumentsInTableView(DocumentBaseTitle + 1, DocumentBaseTitle + 2, DocumentBaseTitle + 3); foreach (var doc in this.documentTitles) { if (doc.Equals("Document1")) { BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDocumentInTableView(doc, this.GetDocumentHref(doc, PageName + "/" + ContentType, LibraryName.ToLower())); BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDownloadButton(this.GetDownloadHref(doc, ContentType, LibraryName)); } else { BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDocumentInTableView(doc, this.GetDocumentHref(doc, PageName + "/" + ContentType, AnotherDocumentLibraryTitle.ToLower())); BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDownloadButton(this.GetDownloadHref(doc, ContentType, AnotherDocumentLibraryTitle)); } } BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDocumentIconOnTemplate(DocumentType, true); BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().ClickDocument(SelectedDocument); ActiveBrowser.WaitForUrl(this.GetDocumentHref(SelectedDocument, PageName + "/" + ContentType, AnotherDocumentLibraryTitle), true, 60000); BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().IsDocumentTitlePresentOnDetailMasterPage(SelectedDocument); BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDownloadButton(this.GetDownloadHref(SelectedDocument, ContentType, AnotherDocumentLibraryTitle)); BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifySizeAndExtensionOnTemplate("5 KB", "(" + DocumentType + ")"); BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower() + "/" + AnotherDocumentLibraryTitle.ToLower(), false, this.Culture); for (int j = 1; j <= 3; j++) { if (j == 1) { BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDocumentIsNotPresent(DocumentBaseTitle + j); } else { BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyDocumentInTableView(DocumentBaseTitle + j, this.GetDocumentHref(DocumentBaseTitle + j, PageName + "/" + ContentType, AnotherDocumentLibraryTitle.ToLower())); } } BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().VerifyCorrectOrderOfDocumentsInTableView(DocumentBaseTitle + 2, DocumentBaseTitle + 3); }