Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Tracking / WorkflowInstanceUnhandledExceptionRecord.cs / 1305376 / WorkflowInstanceUnhandledExceptionRecord.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Tracking { using System; using System.Runtime.Serialization; using System.Runtime; using System.Diagnostics; using System.Globalization; [Fx.Tag.XamlVisible(false)] [DataContract] public sealed class WorkflowInstanceUnhandledExceptionRecord : WorkflowInstanceRecord { public WorkflowInstanceUnhandledExceptionRecord(Guid instanceId, string activityDefinitionId, ActivityInfo faultSource, Exception exception) : this(instanceId, 0, activityDefinitionId, faultSource, exception) { } public WorkflowInstanceUnhandledExceptionRecord(Guid instanceId, long recordNumber, string activityDefinitionId, ActivityInfo faultSource, Exception exception) : base(instanceId, recordNumber, activityDefinitionId, WorkflowInstanceStates.UnhandledException) { if (string.IsNullOrEmpty(activityDefinitionId)) { throw FxTrace.Exception.ArgumentNullOrEmpty("activityDefinitionId"); } if (exception == null) { throw FxTrace.Exception.ArgumentNull("exception"); } if (faultSource == null) { throw FxTrace.Exception.ArgumentNull("faultSource"); } this.FaultSource = faultSource; this.UnhandledException = exception; this.Level = TraceLevel.Error; } WorkflowInstanceUnhandledExceptionRecord(WorkflowInstanceUnhandledExceptionRecord record) : base(record) { this.FaultSource = record.FaultSource; this.UnhandledException = record.UnhandledException; } [DataMember] public Exception UnhandledException { get; private set; } [DataMember] public ActivityInfo FaultSource { get; private set; } protected internal override TrackingRecord Clone() { return new WorkflowInstanceUnhandledExceptionRecord(this); } public override string ToString() { return string.Format(CultureInfo.CurrentCulture, "WorkflowInstanceUnhandledExceptionRecord {{ InstanceId = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, FaultSource {{ {4} }}, UnhandledException = {5} }} ", this.InstanceId, this.RecordNumber, this.EventTime, this.ActivityDefinitionId, this.FaultSource.ToString(), this.UnhandledException); } } } // 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
- StringPropertyBuilder.cs
- MemberAccessException.cs
- IISMapPath.cs
- SplashScreen.cs
- WindowsMenu.cs
- XPathDocumentNavigator.cs
- LineVisual.cs
- ConditionCollection.cs
- ModelPropertyDescriptor.cs
- OrderingQueryOperator.cs
- SafeRightsManagementQueryHandle.cs
- assertwrapper.cs
- HierarchicalDataSourceIDConverter.cs
- BitSet.cs
- LinqDataSourceUpdateEventArgs.cs
- RotateTransform3D.cs
- DtdParser.cs
- UInt16Storage.cs
- userdatakeys.cs
- JpegBitmapDecoder.cs
- MetadataFile.cs
- DiscoveryInnerClientAdhoc11.cs
- sitestring.cs
- HwndSourceKeyboardInputSite.cs
- TypedServiceChannelBuilder.cs
- SessionStateContainer.cs
- InvalidDataException.cs
- SmtpNtlmAuthenticationModule.cs
- DbXmlEnabledProviderManifest.cs
- InfoCardProofToken.cs
- Point3DAnimation.cs
- Pick.cs
- RecognizeCompletedEventArgs.cs
- DataGridViewCellStyle.cs
- TypeElement.cs
- FileVersion.cs
- PageRequestManager.cs
- EventMappingSettingsCollection.cs
- SiteMapPath.cs
- DispatcherEventArgs.cs
- DomainConstraint.cs
- DataRecordObjectView.cs
- MachineKeyConverter.cs
- Assembly.cs
- EventLogException.cs
- ProviderCommandInfoUtils.cs
- WebPartCloseVerb.cs
- COM2ICategorizePropertiesHandler.cs
- UnsafeNativeMethods.cs
- SafeLibraryHandle.cs
- MemberRelationshipService.cs
- FileClassifier.cs
- SqlRowUpdatedEvent.cs
- SmtpNegotiateAuthenticationModule.cs
- SymmetricKey.cs
- FormViewInsertedEventArgs.cs
- VideoDrawing.cs
- PropertyInfoSet.cs
- RootProfilePropertySettingsCollection.cs
- WebRequestModulesSection.cs
- SkinBuilder.cs
- AutomationElementCollection.cs
- CommandDevice.cs
- FormParameter.cs
- LineBreak.cs
- RuntimeConfigurationRecord.cs
- SectionInformation.cs
- DelegatedStream.cs
- Page.cs
- SiteMapSection.cs
- InstanceKeyCollisionException.cs
- FamilyMap.cs
- TextTreeTextNode.cs
- GenericAuthenticationEventArgs.cs
- DataReaderContainer.cs
- XmlExceptionHelper.cs
- BaseProcessProtocolHandler.cs
- TextContainer.cs
- TemplatedWizardStep.cs
- XmlSerializationWriter.cs
- AsyncOperation.cs
- BindingOperations.cs
- XmlSerializerFormatAttribute.cs
- EventListener.cs
- View.cs
- RemotingService.cs
- ObjectSecurity.cs
- BookmarkList.cs
- MouseWheelEventArgs.cs
- UIElementPropertyUndoUnit.cs
- ServiceHttpHandlerFactory.cs
- MachineKeySection.cs
- MessageQueueCriteria.cs
- Delay.cs
- TaiwanLunisolarCalendar.cs
- HttpResponseInternalWrapper.cs
- WindowCollection.cs
- PageHandlerFactory.cs
- UriParserTemplates.cs
- ListViewInsertionMark.cs