{"id":19557174,"url":"https://github.com/gingray/ncassette","last_synced_at":"2025-09-07T16:40:53.384Z","repository":{"id":15945847,"uuid":"18688250","full_name":"gingray/NCassette","owner":"gingray","description":"This tool helps u too cache some long parts of ur program, will be helpfull for debuging specially.","archived":false,"fork":false,"pushed_at":"2014-07-08T05:38:03.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T22:35:28.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gingray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-11T20:48:14.000Z","updated_at":"2014-07-08T05:38:03.000Z","dependencies_parsed_at":"2022-09-24T06:02:01.943Z","dependency_job_id":null,"html_url":"https://github.com/gingray/NCassette","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2FNCassette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2FNCassette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2FNCassette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2FNCassette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gingray","download_url":"https://codeload.github.com/gingray/NCassette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240814864,"owners_count":19861957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T04:40:39.993Z","updated_at":"2025-02-26T08:15:01.044Z","avatar_url":"https://github.com/gingray.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"NCassette\n=======\n\nNCassette its a tool specially for debugging purposes but u can use it how ever u want.\nIt can helps to 'mock' or 'caching' heavy parts of ur algorithms during debugging.\n\nAn attempt to create some kind of C# alternative of Ruby VCR or C# alternative Java Betamax,\nbut main idea not quite the same lib record the answer from service not trying to intercept the connection or something like that.\n\nThats mean that ucan record not only some network manipulation but what ever u want and its very simple\nand light weigth, no additional dependencies.\nExample below:\n\n\n\t\t\t\t\t\t\n\t\tstatic void Main(string[] args)\n\t\t{\n\t\t\tvar url = \"http://google.com\";\n\t\t\tvar result = NCassette.Record(() =\u003e\n\t\t\t{\n\t\t\t//some very heavy manipulation here\n\t\t\tvar networkRespone = NetworkResponse();\n\t\t\tvar someClass = new CustomClass {SomeStringProperty = networkRespone};\n\t\t\treturn someClass;\n\t\t\t})\n\t\t\t.SerializeWayJson()\n\t\t\t.WorkInReleaseMode()\n\t\t\t.DependsOn(url)\n\t\t\t.StorageInTempFiles()\n\t\t\t.Execute();\n\t\t\tConsole.WriteLine(\"{0}\", result.SomeStringProperty);\n\t\t\tConsole.WriteLine(\"Done\");\n\t\t\tConsole.ReadLine();\n\t\t}\n\nThe code in lambda wil execute only once all other calls will be cached.\n\nAvailable on NuGet: Install-Package NCassette\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingray%2Fncassette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgingray%2Fncassette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingray%2Fncassette/lists"}