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

MissingMethodException when using QueryContainer() #133

Open
cernuto opened this issue Apr 22, 2020 · 1 comment
Open

MissingMethodException when using QueryContainer() #133

cernuto opened this issue Apr 22, 2020 · 1 comment
Assignees

Comments

@cernuto
Copy link

cernuto commented Apr 22, 2020

When using query container the following exception is thrown when using aggregate extension method:

System.MissingMethodException: 'Method not found: 'Void Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions

Here is the query:

var eventToSend = _eventInputStream.Multicast(ev => { return ev.Join(_meterInputStream, (evt, mtr) => new { evt, mtr }) .AlterEventDuration(StreamEvent.InfinitySyncTime) .ClipEventDuration(_eventAckInputStream, evtMtr => evtMtr.evt.Id, evtAck => evtAck.Id) .Join(ev, (evtMtr, evt) => evtMtr) .GroupApply(evtMtr => evtMtr.mtr.Key, em => em.Min((eml, emr) => eml.mtr.DateTime.Ticks.CompareTo(emr.mtr.DateTime.Ticks))); });

When .Min() is removed it will not throw. Also, when not using a QueryContainer() it will not throw.

Is it due to incompatible versions or wrong version installed?

@cernuto
Copy link
Author

cernuto commented Apr 24, 2020

A careful application of Multicast has fixed the issue

var eventToSend = _eventInputStream.Multicast(ev => { return ev.Join(_meterInputStream, (evt, mtr) => new { evt, mtr }) .AlterEventDuration(StreamEvent.InfinitySyncTime) .ClipEventDuration(_eventAckInputStream, evtMtr => evtMtr.evt.Id, evtAck => evtAck.Id) .Join(ev, (evtMtr, evt) => evtMtr) .Multicast(evtMtr => evtMtr.Min(em => em.evt.Id).Join(evtMtr, l => l, r => r.evt.Id, (e, m) => new { e, m })); });

I imagine this is a more efficient way to do the query. Now, if someone could post examples of Pivot and Unpivot?

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

No branches or pull requests

2 participants