void Container4() { //ReceiveActivity.ServiceOperationInfo //<snippet4> ReceiveActivity receiveQuoteFromShipper1 = new ReceiveActivity(); CodeActivity shipper1ShippingQuote = new CodeActivity(); ContextToken contextToken1 = new ContextToken(); ActivityBind activityBind1 = new ActivityBind(); WorkflowParameterBinding workflowParameterBinding1 = new WorkflowParameterBinding(); TypedOperationInfo typedOperationInfo1 = new TypedOperationInfo(); receiveQuoteFromShipper1.Activities.Add(shipper1ShippingQuote); contextToken1.Name = "Shipper1Context"; contextToken1.OwnerActivityName = "GetShippingQuotes"; receiveQuoteFromShipper1.ContextToken = contextToken1; receiveQuoteFromShipper1.Name = "receiveQuoteFromShipper1"; activityBind1.Name = "SupplierWorkflow"; activityBind1.Path = "quoteShipper1"; workflowParameterBinding1.ParameterName = "quote"; workflowParameterBinding1.SetBinding(WorkflowParameterBinding.ValueProperty, ((ActivityBind)(activityBind1))); receiveQuoteFromShipper1.ParameterBindings.Add(workflowParameterBinding1); typedOperationInfo1.ContractType = typeof(IShippingQuote); typedOperationInfo1.Name = "ShippingQuote"; receiveQuoteFromShipper1.ServiceOperationInfo = typedOperationInfo1; //</snippet4> }
void Container0() { ChannelToken channelToken1 = new ChannelToken(); SendActivity RequestQuoteFromShipper3 = new SendActivity(); ActivityBind activityBind2 = new ActivityBind(); ActivityBind activityBind3 = new ActivityBind(); ActivityBind activityBind4 = new ActivityBind(); WorkflowParameterBinding workflowParameterBinding2 = new WorkflowParameterBinding(); WorkflowParameterBinding workflowParameterBinding3 = new WorkflowParameterBinding(); WorkflowParameterBinding workflowParameterBinding4 = new WorkflowParameterBinding(); //SendActivity.ParameterBindings //<snippet0> channelToken1.EndpointName = "Shipper3Endpoint"; channelToken1.Name = "Shipper3Endpoint"; channelToken1.OwnerActivityName = "GetShippingQuotes"; RequestQuoteFromShipper3.ChannelToken = channelToken1; RequestQuoteFromShipper3.Name = "RequestQuoteFromShipper3"; activityBind2.Name = "SupplierWorkflow"; activityBind2.Path = "order"; workflowParameterBinding2.ParameterName = "po"; workflowParameterBinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activityBind2))); activityBind3.Name = "SupplierWorkflow"; activityBind3.Path = "contextShipper3"; workflowParameterBinding3.ParameterName = "context"; workflowParameterBinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activityBind3))); activityBind4.Name = "SupplierWorkflow"; activityBind4.Path = "ackShipper3"; workflowParameterBinding4.ParameterName = "(ReturnValue)"; workflowParameterBinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activityBind4))); RequestQuoteFromShipper3.ParameterBindings.Add(workflowParameterBinding2); RequestQuoteFromShipper3.ParameterBindings.Add(workflowParameterBinding3); RequestQuoteFromShipper3.ParameterBindings.Add(workflowParameterBinding4); //</snippet0> }