Title: Current culture should not affect the generated cache key · Issue #226 · SharpRepository/SharpRepository · GitHub
Open Graph Title: Current culture should not affect the generated cache key · Issue #226 · SharpRepository/SharpRepository
X Title: Current culture should not affect the generated cache key · Issue #226 · SharpRepository/SharpRepository
Description: When using a specification containing a language dependent condition, my expected behavior is that the generated hash for the cache key should be the same in every culture. var date = DateTime.Now; var culture = new System.Globalization....
Open Graph Description: When using a specification containing a language dependent condition, my expected behavior is that the generated hash for the cache key should be the same in every culture. var date = DateTime.Now;...
X Description: When using a specification containing a language dependent condition, my expected behavior is that the generated hash for the cache key should be the same in every culture. var date = DateTime.Now;...
Opengraph URL: https://github.com/SharpRepository/SharpRepository/issues/226
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Current culture should not affect the generated cache key","articleBody":"When using a specification containing a language dependent condition, my expected behavior is that the generated hash for the cache key should be the same in every culture.\r\n \r\n```csharp\r\nvar date = DateTime.Now;\r\nvar culture = new System.Globalization.CultureInfo(\"en\");\r\n\r\nSystem.Threading.Thread.CurrentThread.CurrentCulture = culture;\r\nSystem.Threading.Thread.CurrentThread.CurrentUICulture = culture;\r\n\r\nvar spec1 = new Specification\u003cContact\u003e(p =\u003e p.Date \u003e= date);\r\nvar hash1 = HashGenerator.FromSpecification(spec1);\r\n\r\nculture = new System.Globalization.CultureInfo(\"it\");\r\nSystem.Threading.Thread.CurrentThread.CurrentCulture = culture;\r\nSystem.Threading.Thread.CurrentThread.CurrentUICulture = culture;\r\n\r\nvar spec2 = new Specification\u003cContact\u003e(p =\u003e p.Date \u003e= date);\r\nvar hash2 = HashGenerator.FromSpecification(spec2);\r\n\r\nhash1.ShouldBe(hash2);\r\n```\r\n\r\n I think that the current language should not affect the generated key.","author":{"url":"https://github.com/Liu79","@type":"Person","name":"Liu79"},"datePublished":"2018-09-13T14:17:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/226/SharpRepository/issues/226"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:632aecae-ed75-df7c-4fa4-750bdbe0da1d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B25C:19AC80:1F43D52:29742FC:6971B05C |
| html-safe-nonce | 2d184b84d503863f0564d9a1af8d4144cebf8950e90bd51059a2ed467114daa8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjVDOjE5QUM4MDoxRjQzRDUyOjI5NzQyRkM6Njk3MUIwNUMiLCJ2aXNpdG9yX2lkIjoiNjcyNzUyNDAyMjc0MjAwMzgwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 79ca39e5f9f86bb25e6e9962f6ca55c2a8d5c15f5399cc02baa9d75b06f2a6b9 |
| hovercard-subject-tag | issue:359916394 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SharpRepository/SharpRepository/226/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fdf81333ad4b3862fa0fe32c92b99eb4864b08727f7c2eaf7c887543c7afa678/SharpRepository/SharpRepository/issues/226 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fdf81333ad4b3862fa0fe32c92b99eb4864b08727f7c2eaf7c887543c7afa678/SharpRepository/SharpRepository/issues/226 |
| og:image:alt | When using a specification containing a language dependent condition, my expected behavior is that the generated hash for the cache key should be the same in every culture. var date = DateTime.Now;... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Liu79 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b0f2f00499ad3dd2c21ad030a3c403edca54df20ea256f6517c6d8c4fa3a1a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/SharpRepository/SharpRepository git https://github.com/SharpRepository/SharpRepository.git |
| octolytics-dimension-user_id | 1801360 |
| octolytics-dimension-user_login | SharpRepository |
| octolytics-dimension-repository_id | 4514047 |
| octolytics-dimension-repository_nwo | SharpRepository/SharpRepository |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4514047 |
| octolytics-dimension-repository_network_root_nwo | SharpRepository/SharpRepository |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 979375c570cc30aefe2a734083debe402a612209 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width