The CorrelationInitializer Attribute

WF also needs to initialize the correlation token when data communications commence. To facilitate this, you place the CorrelationIntializer attribute on the method or event that kicks off the data communication, and there might be more than one. Any attempt to send correlated data back and forth before executing the method or event marked as the correlation initializer results in an exception.

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.