Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / NoPersistScope.cs / 1305376 / NoPersistScope.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activities { using System; using System.Activities.Statements; using System.Activities; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Windows.Markup; using System.ComponentModel; [ContentProperty("Body")] class NoPersistScope : NativeActivity { VariablenoPersistHandle; public NoPersistScope() { this.noPersistHandle = new Variable (); } [DefaultValue(null)] public Activity Body { get; set; } protected override void CacheMetadata(NativeActivityMetadata metadata) { metadata.AddChild(this.Body); metadata.AddImplementationVariable(this.noPersistHandle); } protected override void Execute(NativeActivityContext context) { if (this.Body != null) { NoPersistHandle handle = this.noPersistHandle.Get(context); handle.Enter(context); context.ScheduleActivity(this.Body); } } } } // 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
- RegexCompiler.cs
- TargetParameterCountException.cs
- TreeNodeClickEventArgs.cs
- StrokeNodeOperations.cs
- DynamicEndpoint.cs
- PrincipalPermission.cs
- FormViewPagerRow.cs
- MissingMemberException.cs
- ViewValidator.cs
- ParseChildrenAsPropertiesAttribute.cs
- ContextMarshalException.cs
- OracleMonthSpan.cs
- ObjectStateManagerMetadata.cs
- CharEntityEncoderFallback.cs
- TriggerActionCollection.cs
- BulletedList.cs
- SubMenuStyle.cs
- Animatable.cs
- CultureSpecificStringDictionary.cs
- XslException.cs
- IntSecurity.cs
- CompModSwitches.cs
- XPathAncestorIterator.cs
- DefaultWorkflowTransactionService.cs
- ListViewItem.cs
- _ConnectStream.cs
- UseAttributeSetsAction.cs
- XmlDocumentFieldSchema.cs
- DataGridCellEditEndingEventArgs.cs
- SerialReceived.cs
- SynchronizedDispatch.cs
- SqlDataSourceQuery.cs
- HostExecutionContextManager.cs
- IPEndPoint.cs
- EdmType.cs
- TextElementCollection.cs
- Journaling.cs
- InternalTransaction.cs
- SQLByte.cs
- CodeMemberEvent.cs
- XmlDictionaryReaderQuotasElement.cs
- ExpressionLexer.cs
- DispatcherTimer.cs
- DBProviderConfigurationHandler.cs
- DataBoundLiteralControl.cs
- NativeMethods.cs
- UnknownBitmapEncoder.cs
- Root.cs
- TimeZoneNotFoundException.cs
- DropDownList.cs
- InternalMappingException.cs
- nulltextcontainer.cs
- cryptoapiTransform.cs
- OutputCacheSettingsSection.cs
- ClientFormsAuthenticationCredentials.cs
- IsolatedStorageException.cs
- ChildTable.cs
- HighlightVisual.cs
- NullExtension.cs
- TreeViewItemAutomationPeer.cs
- SqlFunctionAttribute.cs
- SmiTypedGetterSetter.cs
- EmbeddedMailObjectsCollection.cs
- _ConnectOverlappedAsyncResult.cs
- OverflowException.cs
- XmlReader.cs
- SmiEventSink_DeferedProcessing.cs
- smtpconnection.cs
- NavigationProperty.cs
- BamlMapTable.cs
- EllipseGeometry.cs
- AddressUtility.cs
- SafeFileMappingHandle.cs
- QilParameter.cs
- IdnElement.cs
- InvalidPropValue.cs
- WorkflowPersistenceService.cs
- TrimSurroundingWhitespaceAttribute.cs
- ArrayTypeMismatchException.cs
- DrawingGroup.cs
- FieldToken.cs
- InputBinding.cs
- BindingMemberInfo.cs
- TouchDevice.cs
- NetworkInformationException.cs
- SqlDataSourceFilteringEventArgs.cs
- NotSupportedException.cs
- SqlWriter.cs
- EventDescriptorCollection.cs
- PermissionToken.cs
- InputReferenceExpression.cs
- EndOfStreamException.cs
- TextFragmentEngine.cs
- XmlDataCollection.cs
- BuildProvidersCompiler.cs
- InternalsVisibleToAttribute.cs
- ResourceExpressionEditorSheet.cs
- XmlSchemaGroup.cs
- EncryptedData.cs
- SoapProcessingBehavior.cs