Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Wsat / Recovery / LogEntrySerializer.cs / 1 / LogEntrySerializer.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- // This file contains the abstract base class for all log entry serializers using System; using System.Diagnostics; using System.IO; using Microsoft.Transactions.Wsat.Messaging; using Microsoft.Transactions.Wsat.Protocol; namespace Microsoft.Transactions.Wsat.Recovery { abstract class LogEntrySerializer { protected MemoryStream mem; protected LogEntry logEntry; LogEntryHeaderSerializer headerSerializer; protected LogEntrySerializer(LogEntry logEntry) { this.logEntry = logEntry; this.headerSerializer = new LogEntryHeaderSerializer(logEntry); } protected abstract void SerializeExtended(); public byte[] Serialize() { this.mem = this.headerSerializer.WriteHeader(); SerializeExtended(); return this.mem.ToArray(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RetrieveVirtualItemEventArgs.cs
- DESCryptoServiceProvider.cs
- ExpandCollapsePattern.cs
- ExtendedPropertyCollection.cs
- DBParameter.cs
- ConfigViewGenerator.cs
- VBIdentifierName.cs
- NotConverter.cs
- AuthenticodeSignatureInformation.cs
- ErrorItem.cs
- UndirectedGraph.cs
- ExpressionVisitor.cs
- CodeNamespaceImportCollection.cs
- LogicalExpr.cs
- ScrollData.cs
- TypeEnumerableViewSchema.cs
- ProviderConnectionPoint.cs
- Misc.cs
- ComplexLine.cs
- PropertyGridCommands.cs
- Activity.cs
- X509Certificate2.cs
- QilList.cs
- AxParameterData.cs
- DiscreteKeyFrames.cs
- DefaultSerializationProviderAttribute.cs
- SecurityException.cs
- GridViewRowCollection.cs
- DataGridViewCell.cs
- SchemaMerger.cs
- SourceItem.cs
- MultitargetingHelpers.cs
- FamilyMapCollection.cs
- CapabilitiesSection.cs
- ReflectionTypeLoadException.cs
- WebPart.cs
- XmlDocument.cs
- RepeaterItem.cs
- QueryTreeBuilder.cs
- StylusButtonEventArgs.cs
- XmlReaderDelegator.cs
- dataprotectionpermission.cs
- SchemaName.cs
- RouteUrlExpressionBuilder.cs
- WMICapabilities.cs
- ProfileSettings.cs
- TraceEventCache.cs
- ConnectionPointCookie.cs
- ControlUtil.cs
- DocumentGridPage.cs
- TextSelectionHighlightLayer.cs
- Effect.cs
- NewArrayExpression.cs
- DBConnection.cs
- ListControlConvertEventArgs.cs
- ApplicationActivator.cs
- OutputCacheSection.cs
- DataGridTable.cs
- PathFigure.cs
- ExpressionBuilder.cs
- WrappedKeySecurityToken.cs
- EventListenerClientSide.cs
- KnownTypes.cs
- Speller.cs
- DataGridRowClipboardEventArgs.cs
- ProcessModelSection.cs
- PreviewControlDesigner.cs
- ElementMarkupObject.cs
- StateBag.cs
- EventLogEntryCollection.cs
- Matrix.cs
- DetailsViewRowCollection.cs
- MediaContextNotificationWindow.cs
- LinearKeyFrames.cs
- MulticastOption.cs
- VectorCollectionValueSerializer.cs
- BuildManager.cs
- HtmlHead.cs
- Int16AnimationBase.cs
- DebuggerAttributes.cs
- PageContentCollection.cs
- SchemaTableOptionalColumn.cs
- XMLSyntaxException.cs
- MdImport.cs
- X509ChainPolicy.cs
- CompilationRelaxations.cs
- XsltFunctions.cs
- AttachedPropertyMethodSelector.cs
- TimelineClockCollection.cs
- WaitHandle.cs
- NameValueFileSectionHandler.cs
- ApplicationActivator.cs
- Verify.cs
- BigInt.cs
- RestHandlerFactory.cs
- SynthesizerStateChangedEventArgs.cs
- ExpressionVisitor.cs
- DataViewListener.cs
- OdbcConnectionPoolProviderInfo.cs
- WinFormsSpinner.cs