{"id":15430546,"url":"https://github.com/lenisha/dotnetsamples-simple","last_synced_at":"2025-07-13T19:07:19.749Z","repository":{"id":116070580,"uuid":"98351672","full_name":"lenisha/DotNetSamples-Simple","owner":"lenisha","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-10T23:32:43.000Z","size":506,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T06:38:12.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/lenisha.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-25T21:30:17.000Z","updated_at":"2019-04-01T21:46:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e697144-307a-4109-b07b-fe332b20b55a","html_url":"https://github.com/lenisha/DotNetSamples-Simple","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":"0.38095238095238093","last_synced_commit":"ab268a94304697c86ed1b3283dbc32a0f6836e1a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lenisha/DotNetSamples-Simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenisha%2FDotNetSamples-Simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenisha%2FDotNetSamples-Simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenisha%2FDotNetSamples-Simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenisha%2FDotNetSamples-Simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lenisha","download_url":"https://codeload.github.com/lenisha/DotNetSamples-Simple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenisha%2FDotNetSamples-Simple/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265191065,"owners_count":23725252,"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-10-01T18:16:52.362Z","updated_at":"2025-07-13T19:07:19.719Z","avatar_url":"https://github.com/lenisha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WcfService on PCF\n\n## WcfService-Simple\nHosting simple WCF REST service using HWC and Binary buildpacks\n\n`/api/hello` - hello world\n\n`/api/env` - print all environment variables\n\n## WcfService-Tcp \nSelf hosted WCF service over tcp, project includes service and client\n_Note:_ it's example to test how to run in PCF, for production better management cycle should be written. \nExample is based on sample:\nhttps://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/default-nettcpbinding\n\n### Running TCP example on PCF\n* Enable TCP Routing on ERT\n* Create shared domain and quota as per instructions:\nhttps://docs.pivotal.io/pivotalcf/1-11/adminguide/enabling-tcp-routing.html\n```\ncf create-shared-domain \u003cspace\u003e tcp.\u003capps-domain\u003e  --router-group default-tcp\ncf update-quota default —reserved-route-ports 100\n```\n* Push application using supplied manifest (binary buildpack, port healthcheck and tcp route)\n```\ncf push -f manifest_bin.yml\n```\n* To create route manually (although if supplied in manifest it will be created during push)\n```\ncf create-route pcfdev-space tcp.local.pcfdev.io --port 9473\ncf map-route gs-spring tcp.local.pcfdev.io --port 9473\n```\n### Run tcp client to test\nPoint client to the service route in app.config\n```\n\u003cendpoint name=\"\" address=\"net.tcp://tcp.cfapps.haas-51.pez.pivotal.io:9743/servicemodelsamples/service\" /\u003e\n\n```\n\n# WF applications on PCF\nWindows Workflow Foundation has 3 models of hosting the flows\nhttps://docs.microsoft.com/en-us/dotnet/framework/windows-workflow-foundation/using-workflowinvoker-and-workflowapplication,\n\n\n## WFConsole-Simple\nDemontrates  **WorkflowInvoker** - console application, stateless, sync invocation - suitable for one off tasks.\nNo special PCF updates required, it runs well, example hosting in binary buildpack.\nWhen deployed starts as daemon and workflow invoked as a task:\n```\ncf run-task console-app-bin \"bin/Debug/ConsoleApp-Task.exe dump\" --name printenv\n```\n\n## WFService-Calc\nDemonstrates **WorkflowServiceHost** - expose workflow as invocable WCF service.\nNo special PCF updates required it runs well, example hosting in binary and hwc buildpack.\nTo run use posteman collection in this repo or WcfTestClient.exe.\n\n## WF-LongApp\nDemonstrates **WorkflowApplication** - stateful (persistent) host, running async - suitable for long running tasks.\nNo special PCF updates required it runs well, example hosting in binary and hwc buildpack.\nThis app shows WorkflowApplication with flow that could be idle and uses resume bookmarks.\nTo use \n```\n GET /start - will start workflow, print \"what is your name?\" and will suspend and wait for user activity\n GET /resume - will resume suspended workflow and pring \"Hello Pivotal\".\n ```\n\n## WorkflowASPNet\nDemonstrates **WorkflowApplication and WorkflowInvoker**  sync and async usage from ASP.NET\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenisha%2Fdotnetsamples-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flenisha%2Fdotnetsamples-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenisha%2Fdotnetsamples-simple/lists"}