Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol: C# Script Input #22

Open
RxDave opened this issue Jul 10, 2016 · 1 comment
Open

Protocol: C# Script Input #22

RxDave opened this issue Jul 10, 2016 · 1 comment

Comments

@RxDave
Copy link
Owner

RxDave commented Jul 10, 2016

Consider updating the protocol to support raw C# input from clients. This will make it possible for JS clients to communicate over the new WebSocket provider.

The idea is simple: Any client can send a query as a string containing a C# code snippet, with the following constraints.

  • MUST NOT exceed a maximum length (an optional security constraint specified by the service).
  • MUST NOT contain any { } or ; characters (except in strings and comments).
  • MUST contain an unambiguous placeholder for the query source; e.g., {{SOURCE}}
  • MAY contain any number of using statements before the query.
  • MAY contain closures via unambiguous identifiers; e.g., from x in {{OBSERVABLE:myClosure}}
  • consider other constraints...

Consider using Roslyn on the server-side to parse queries into expression trees and then treat them as if they were normal deserialized expression trees.

@RxDave RxDave changed the title Protocol: Raw C# Input Protocol: C# Script Input Aug 9, 2016
@RxDave
Copy link
Owner Author

RxDave commented Apr 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant