Market Strategy Engine: Moving to .NET 4

I thought I’d be clever today. Whilst on the train, and move the Market Strategy Engine (MSE) codebase from .NET 3.5 SP1 to .NET 4. Unfortunately not everything went according to plan:

  • Using Prism with .NET 4 requires that the Prism assemblies () reference System.Xaml – easy to resolve
  • Since StreamInsight has RTM’d, I thought I’d do the sensible thing and move to the release version. Unfortunately I didn’t read the documentation that says that since StreamInsight was developed in parallel with .NET, StreamInsight does not yet support .NET 4.0. Hence running with .NET caused this exception:

The field ‘s’ of type ‘f__AnonymousType2`26′ either contains a nested member, or is a type that is not supported as event type field.

From this code:

            return orders.ToQuery(application,
                                  "orderQuery",
                                  "Orders to fill",
                                  typeof(MarketAdapterFactory),
                                  new InputOutputAdapterConfig()
                                  {
                                      AdapterStopSignal = "StopAdapterOrders"
                                  },
                                  EventShape.Edge,
                                  StreamEventOrder.FullyOrdered);

Thus I’m back to .NET 3.5 SP1 for the MSE until StreamInsight supports .NET 4

Advertisement

~ by mdavey on May 4, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 272 other followers