locked
Delayed sink creation RRS feed

  • Question

  • I have queries with WCF enabled sources and sinks and using StreamInsight embedded in my project. It creates source when i am running my query. It is OK but it will not create sink until some data tuples come into source. Thus, my clients cannot connect to sink (via WCF) before input data come to my query. How can i solve this problem?!


    Maybe it is related to lazy loading (initialization) of operators in StreamInsight?
    • Edited by A.Cormen Saturday, September 13, 2014 9:54 AM
    Tuesday, September 9, 2014 8:43 AM

Answers

  • It is lazy loading. Since you are using the embedded hosting model, however, you have some options.

    What I would do is this: At startup, start the WCF service. It should be separate from your sink. When attaching the sink, have the (already started) WCF service create/provide the IObserver that consumes the events. It's a bit more complex but that would work for you.


    DevBiker (aka J Sawyer)
    Microsoft MVP - Sql Server (StreamInsight)


    Ruminations of J.net


    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.

    Friday, September 19, 2014 1:08 PM
    Moderator