Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / DurableInstancing / CreateWorkflowOwnerCommand.cs / 1305376 / CreateWorkflowOwnerCommand.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.DurableInstancing { using System; using System.Collections.Generic; using System.Runtime; using System.Runtime.DurableInstancing; using System.Xml.Linq; [Fx.Tag.XamlVisible(false)] public sealed class CreateWorkflowOwnerCommand : InstancePersistenceCommand { DictionaryinstanceOwnerMetadata; public CreateWorkflowOwnerCommand() : base(InstancePersistence.ActivitiesCommandNamespace.GetName("CreateWorkflowOwner")) { } public IDictionary InstanceOwnerMetadata { get { if (this.instanceOwnerMetadata == null) { this.instanceOwnerMetadata = new Dictionary (); } return this.instanceOwnerMetadata; } } protected internal override bool IsTransactionEnlistmentOptional { get { return this.instanceOwnerMetadata == null || this.instanceOwnerMetadata.Count == 0; } } protected internal override void Validate(InstanceView view) { if (view.IsBoundToInstanceOwner) { throw FxTrace.Exception.AsError(new InvalidOperationException(SRCore.AlreadyBoundToOwner)); } InstancePersistence.ValidatePropertyBag(this.instanceOwnerMetadata); } } } // 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
- AtomParser.cs
- CompilerScope.Storage.cs
- EventMappingSettings.cs
- Grant.cs
- ImageFormatConverter.cs
- JsonFormatReaderGenerator.cs
- SecurityPermission.cs
- EmbeddedMailObjectsCollection.cs
- SafeBitVector32.cs
- ImageCreator.cs
- RelationalExpressions.cs
- IpcChannelHelper.cs
- Point.cs
- SamlAdvice.cs
- _Rfc2616CacheValidators.cs
- XhtmlBasicSelectionListAdapter.cs
- ViewCellSlot.cs
- ChangeProcessor.cs
- WindowsRebar.cs
- TypeExtensions.cs
- XmlNamespaceManager.cs
- TypeResolver.cs
- RouteUrlExpressionBuilder.cs
- RequestResizeEvent.cs
- SpotLight.cs
- WebServiceClientProxyGenerator.cs
- PenThreadPool.cs
- SQLBinary.cs
- LogLogRecord.cs
- StandardCommands.cs
- CompModSwitches.cs
- StringInfo.cs
- HuffCodec.cs
- RangeContentEnumerator.cs
- OdbcConnectionOpen.cs
- ResourceReferenceExpression.cs
- CodePrimitiveExpression.cs
- ResourcePart.cs
- WebRequestModulesSection.cs
- UidPropertyAttribute.cs
- Button.cs
- TdsEnums.cs
- SamlNameIdentifierClaimResource.cs
- PeerReferralPolicy.cs
- EncryptedPackageFilter.cs
- FormParameter.cs
- FormViewRow.cs
- ValidatedControlConverter.cs
- EdmToObjectNamespaceMap.cs
- NamespaceEmitter.cs
- ProgramNode.cs
- ExpanderAutomationPeer.cs
- SymmetricCryptoHandle.cs
- MissingMethodException.cs
- ApplicationContext.cs
- HwndKeyboardInputProvider.cs
- X509ChainElement.cs
- DirectoryObjectSecurity.cs
- Wildcard.cs
- SpotLight.cs
- FormatterConverter.cs
- XsltFunctions.cs
- IgnoreDeviceFilterElementCollection.cs
- UndirectedGraph.cs
- arc.cs
- CreateUserWizard.cs
- MouseActionConverter.cs
- FontDialog.cs
- WebConfigurationManager.cs
- StorageComplexPropertyMapping.cs
- ModelItemImpl.cs
- Matrix3DStack.cs
- DataConnectionHelper.cs
- TypeBuilderInstantiation.cs
- BlurEffect.cs
- APCustomTypeDescriptor.cs
- UrlPath.cs
- ApplicationSettingsBase.cs
- TypeLoadException.cs
- CalendarAutomationPeer.cs
- EncryptedKey.cs
- ReflectionUtil.cs
- HostingEnvironmentException.cs
- DataGridHyperlinkColumn.cs
- InputLanguageManager.cs
- WindowsImpersonationContext.cs
- SemanticKeyElement.cs
- DnsPermission.cs
- XmlBinaryWriter.cs
- DataGridViewElement.cs
- BCryptNative.cs
- TextTreeTextBlock.cs
- ImageAttributes.cs
- AsymmetricSignatureDeformatter.cs
- PartitionResolver.cs
- ConnectionStringsExpressionBuilder.cs
- FileCodeGroup.cs
- ListControl.cs
- ParserStreamGeometryContext.cs
- FixedTextPointer.cs