Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities.DurableInstancing / System / Activities / DurableInstancing / LoadWorkflowByKeyAsyncResult.cs / 1305376 / LoadWorkflowByKeyAsyncResult.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.DurableInstancing { using System.Collections.Generic; using System.Data.SqlClient; using System.Runtime.DurableInstancing; using System.Transactions; sealed class LoadWorkflowByKeyAsyncResult : LoadWorkflowAsyncResult { public LoadWorkflowByKeyAsyncResult ( InstancePersistenceContext context, InstancePersistenceCommand command, SqlWorkflowInstanceStore store, SqlWorkflowInstanceStoreLock storeLock, Transaction currentTransaction, TimeSpan timeout, AsyncCallback callback, object state ) : base(context, command, store, storeLock, currentTransaction, timeout, callback, state) { } protected override void GenerateSqlCommand(SqlCommand command) { LoadWorkflowByInstanceKeyCommand keyLoadCommand = base.InstancePersistenceCommand as LoadWorkflowByInstanceKeyCommand; LoadType loadType = keyLoadCommand.AcceptUninitializedInstance ? LoadType.LoadOrCreateByKey : LoadType.LoadByKey; Guid key = keyLoadCommand.LookupInstanceKey; ListkeysToAssociate = CorrelationKey.BuildKeyList(keyLoadCommand.InstanceKeysToAssociate, base.Store.InstanceEncodingOption); Guid instanceId = keyLoadCommand.AssociateInstanceKeyToInstanceId; GenerateLoadSqlCommand(command, loadType, key, instanceId, keysToAssociate); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpResponseHeader.cs
- LineServicesRun.cs
- TreeViewItem.cs
- RSAPKCS1SignatureFormatter.cs
- Rectangle.cs
- AuthorizationPolicyTypeElement.cs
- DesignerMetadata.cs
- BulletedListDesigner.cs
- oledbmetadatacollectionnames.cs
- XmlUtil.cs
- OledbConnectionStringbuilder.cs
- WorkflowControlClient.cs
- ReflectionUtil.cs
- ProgressBar.cs
- LongValidatorAttribute.cs
- DelimitedListTraceListener.cs
- ResourceDescriptionAttribute.cs
- EdmMember.cs
- MultilineStringConverter.cs
- SystemDropShadowChrome.cs
- XmlReturnWriter.cs
- AddingNewEventArgs.cs
- ContentFilePart.cs
- Line.cs
- DependencyProperty.cs
- LogStream.cs
- QuestionEventArgs.cs
- DirectionalLight.cs
- ChannelManagerService.cs
- VScrollProperties.cs
- StringUtil.cs
- StandardCommands.cs
- FormatVersion.cs
- WebPartDescriptionCollection.cs
- ConfigXmlWhitespace.cs
- PageContent.cs
- ObjectDataSourceDesigner.cs
- XmlObjectSerializerReadContextComplex.cs
- XmlSigningNodeWriter.cs
- RouteCollection.cs
- EpmContentDeSerializer.cs
- ResXDataNode.cs
- SpAudioStreamWrapper.cs
- DiscreteKeyFrames.cs
- Identity.cs
- StateElement.cs
- LoginName.cs
- WebEventTraceProvider.cs
- DataGridViewComboBoxColumn.cs
- SparseMemoryStream.cs
- JpegBitmapDecoder.cs
- CreateUserWizard.cs
- WindowsPen.cs
- BaseConfigurationRecord.cs
- InputEventArgs.cs
- HashHelper.cs
- Int32Rect.cs
- _PooledStream.cs
- WindowsStatic.cs
- CollectionEditorDialog.cs
- BypassElementCollection.cs
- ModelUtilities.cs
- ArgumentValueSerializer.cs
- basevalidator.cs
- ParameterModifier.cs
- DataRow.cs
- XomlCompilerHelpers.cs
- storepermission.cs
- ModifyActivitiesPropertyDescriptor.cs
- Attribute.cs
- webproxy.cs
- Identity.cs
- SequentialWorkflowHeaderFooter.cs
- TextTreeNode.cs
- SqlProviderServices.cs
- ImportCatalogPart.cs
- StylusButton.cs
- PropertyCollection.cs
- DependencyPropertyDescriptor.cs
- UpDownEvent.cs
- Attributes.cs
- WithParamAction.cs
- WebPartVerbCollection.cs
- XmlWellformedWriterHelpers.cs
- DES.cs
- AsnEncodedData.cs
- EventSourceCreationData.cs
- PixelShader.cs
- FixedDocument.cs
- TagMapInfo.cs
- CrossContextChannel.cs
- SafeMILHandle.cs
- ImmutableCommunicationTimeouts.cs
- DbProviderServices.cs
- SecurityTokenResolver.cs
- UnSafeCharBuffer.cs
- Point3DConverter.cs
- rsa.cs
- StringUtil.cs
- KeyedCollection.cs