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
- CatalogZoneDesigner.cs
- SeparatorAutomationPeer.cs
- infer.cs
- XmlNodeChangedEventArgs.cs
- SQLString.cs
- Compilation.cs
- Number.cs
- BufferModesCollection.cs
- StateMachineExecutionState.cs
- EventLog.cs
- ChtmlSelectionListAdapter.cs
- AdRotator.cs
- TrustSection.cs
- _SslSessionsCache.cs
- RefType.cs
- ActivityWithResult.cs
- PolyBezierSegment.cs
- AccessedThroughPropertyAttribute.cs
- ImageMap.cs
- BindingObserver.cs
- MaterialGroup.cs
- ThemeDirectoryCompiler.cs
- figurelengthconverter.cs
- SoapUnknownHeader.cs
- EdmToObjectNamespaceMap.cs
- FilteredXmlReader.cs
- VirtualPathData.cs
- CompleteWizardStep.cs
- Metafile.cs
- ConvertBinder.cs
- SqlDataSourceConfigureSelectPanel.cs
- SingleAnimation.cs
- HtmlDocument.cs
- Publisher.cs
- WhereQueryOperator.cs
- ChildTable.cs
- AutomationPeer.cs
- IPGlobalProperties.cs
- TextSearch.cs
- log.cs
- Rect3DConverter.cs
- Floater.cs
- TextTreeNode.cs
- ActivationArguments.cs
- ExtensionFile.cs
- EmptyWithCancelationCheckWorkItem.cs
- QueryContinueDragEvent.cs
- RotateTransform.cs
- WrapPanel.cs
- AddInProcess.cs
- TabItemAutomationPeer.cs
- IisTraceWebEventProvider.cs
- DiscoveryUtility.cs
- DataStreamFromComStream.cs
- _NestedSingleAsyncResult.cs
- TextBoxRenderer.cs
- WebRequestModuleElementCollection.cs
- AssemblyBuilder.cs
- EntityParameter.cs
- DataServiceQueryException.cs
- ValidatedControlConverter.cs
- ToolStripItemImageRenderEventArgs.cs
- BaseDataList.cs
- ComponentEditorPage.cs
- InputReferenceExpression.cs
- ReadOnlyCollection.cs
- IsolatedStoragePermission.cs
- StructuralType.cs
- PackagePart.cs
- Geometry.cs
- FontDialog.cs
- ResourceBinder.cs
- SafeThemeHandle.cs
- LinqDataSourceDeleteEventArgs.cs
- ToolStripManager.cs
- ProcessHostConfigUtils.cs
- UInt32Converter.cs
- DrawingCollection.cs
- XmlSchemaImport.cs
- DataGridViewColumn.cs
- shaperfactoryquerycacheentry.cs
- OutputCacheModule.cs
- BuildResult.cs
- ItemType.cs
- _ConnectionGroup.cs
- Rule.cs
- SQLDouble.cs
- CheckBox.cs
- XmlUnspecifiedAttribute.cs
- DesignerTextBoxAdapter.cs
- MetadataArtifactLoaderFile.cs
- SamlNameIdentifierClaimResource.cs
- ErrorWebPart.cs
- DateTimeFormat.cs
- MaterialGroup.cs
- WindowsPrincipal.cs
- IdleTimeoutMonitor.cs
- GroupDescription.cs
- HttpCacheParams.cs
- MultidimensionalArrayItemReference.cs