{"id":26866469,"url":"https://github.com/mtconnect/mtlinq","last_synced_at":"2025-05-07T01:23:36.422Z","repository":{"id":845941,"uuid":"572313","full_name":"mtconnect/mtlinq","owner":"mtconnect","description":"MTConnect Linq Example","archived":false,"fork":false,"pushed_at":"2014-12-19T01:07:07.000Z","size":221,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-03-25T22:27:00.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtconnect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-03-21T07:45:37.000Z","updated_at":"2023-08-13T22:28:31.000Z","dependencies_parsed_at":"2022-08-16T11:10:17.906Z","dependency_job_id":null,"html_url":"https://github.com/mtconnect/mtlinq","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/mtconnect%2Fmtlinq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtconnect%2Fmtlinq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtconnect%2Fmtlinq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtconnect%2Fmtlinq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtconnect","download_url":"https://codeload.github.com/mtconnect/mtlinq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418651,"owners_count":20773935,"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":"2025-03-31T04:54:42.895Z","updated_at":"2025-03-31T04:54:43.486Z","avatar_url":"https://github.com/mtconnect.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"MTSharp\n=======\n\n.Net library for comsuming MTConnect streams written in pure C#.\n\nThis library utilizes Linq and Xml.Linq to simplify and speed up the parsing of streams.\n\nThe structure was taken mostly from https://github.com/mtconnect/mtlinq but cleaned up and optimized\nto have ~30% gain in performance.\n\n\nMTConnect.Probe()\n-----------------\n\nMTConnect.Probe() gets all the devices but not the current result set. This is great if you need \nto get the Devices in a stream but do not need the data at the time. MTConnect.Probe will make a \nrequest every time it is called, so if you want the devices from the last time, use MTConnect.Devices().\nIf MTConnect.Probe has has not been called, MTConnect.Devices will make the call for you.\n\n\nMTConnect.Current()\n-------------------\n\nMTConnect.Current() is used to get all Devices in a stream along with an enumerable dataset of Result's.\n\nExamples\n-------\n\n### Get all devices in a stream\n\nNotice below how the example url does not contain a \"/current\" at the end, DO NOT add the \"/current\".\n\n```C#\nMTConnect connect = new MTConnect(\"http://url-to-stream\");\nIEnumerable\u003cDevice\u003e devices = connect.Probe().Select(entry =\u003e entry.Value);\n```\n\n\n### Get the results for a device in a stream\n\nThis example get all results for a device named \"TestDevice\" within the stream.\n\n```C#\nMTConnect connect = new MTConnect(\"http://url-to-stream\");\nIEnumerable\u003cResult\u003e results = connect.Current()[\"TestDevice\"];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtconnect%2Fmtlinq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtconnect%2Fmtlinq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtconnect%2Fmtlinq/lists"}