void Container1() { //ReceiveActivity.ContextToken //<snippet1> ReceiveActivity receiveQuoteFromShipper3; receiveQuoteFromShipper3 = new System.Workflow.Activities.ReceiveActivity(); System.Workflow.Activities.ContextToken contexttoken1 = new System.Workflow.Activities.ContextToken(); contexttoken1.Name = "Shipper3Context"; receiveQuoteFromShipper3.ContextToken = contexttoken1; //</snippet1> }
void Container0() { //ReceiveActivity.CanCreateInstance //<snippet0> ReceiveActivity receiveRequestShippingQuote; CodeActivity doAcceptQuoteRequest; doAcceptQuoteRequest = new System.Workflow.Activities.CodeActivity(); receiveRequestShippingQuote = new System.Workflow.Activities.ReceiveActivity(); receiveRequestShippingQuote.Activities.Add(doAcceptQuoteRequest); receiveRequestShippingQuote.CanCreateInstance = true; //</snippet0> }