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
- RelationshipManager.cs
- ColorAnimationBase.cs
- FileUtil.cs
- QuadraticBezierSegment.cs
- PointHitTestParameters.cs
- FunctionDetailsReader.cs
- DataListItemCollection.cs
- SolidColorBrush.cs
- MetadataCacheItem.cs
- WebBrowserNavigatedEventHandler.cs
- OutputWindow.cs
- UpdateCompiler.cs
- SystemParameters.cs
- LockRecursionException.cs
- XmlAttribute.cs
- ForeignConstraint.cs
- MailWebEventProvider.cs
- TextTreePropertyUndoUnit.cs
- HtmlInputPassword.cs
- ZoneMembershipCondition.cs
- ValidationHelper.cs
- SingleResultAttribute.cs
- ListChangedEventArgs.cs
- BinHexEncoder.cs
- ButtonChrome.cs
- TrackingMemoryStream.cs
- PlaceHolder.cs
- AxHostDesigner.cs
- XPathNodeHelper.cs
- ErrorFormatter.cs
- SqlMultiplexer.cs
- CodeGeneratorOptions.cs
- GridViewRowEventArgs.cs
- WriterOutput.cs
- TiffBitmapEncoder.cs
- XmlSchemas.cs
- UnorderedHashRepartitionStream.cs
- ExtentCqlBlock.cs
- UniqueEventHelper.cs
- GradientBrush.cs
- BufferModeSettings.cs
- KerberosSecurityTokenProvider.cs
- QuaternionKeyFrameCollection.cs
- DataGridViewCheckBoxColumn.cs
- _AutoWebProxyScriptEngine.cs
- PublishLicense.cs
- RegisteredDisposeScript.cs
- RoutedCommand.cs
- ProxyWebPartManagerDesigner.cs
- Rect.cs
- DataObjectAttribute.cs
- ButtonStandardAdapter.cs
- SqlUserDefinedAggregateAttribute.cs
- VideoDrawing.cs
- MouseButton.cs
- WorkflowApplicationUnloadedException.cs
- SpeechAudioFormatInfo.cs
- PenCursorManager.cs
- ChangeTracker.cs
- CacheAxisQuery.cs
- UpdateTracker.cs
- LogEntryHeaderSerializer.cs
- HTMLTextWriter.cs
- ChineseLunisolarCalendar.cs
- SiteMapNode.cs
- ActivityExecutor.cs
- UnsafeNativeMethods.cs
- ThreadStartException.cs
- PolygonHotSpot.cs
- Rect3D.cs
- HwndHost.cs
- QuadraticEase.cs
- SQLInt64.cs
- InvalidWMPVersionException.cs
- SqlSelectStatement.cs
- StylusCollection.cs
- _Rfc2616CacheValidators.cs
- XmlSchemaObject.cs
- ObjectRef.cs
- ExtentKey.cs
- ServiceTimeoutsElement.cs
- TextMarkerSource.cs
- Cell.cs
- ListViewDesigner.cs
- ConfigXmlWhitespace.cs
- Command.cs
- Enum.cs
- HighContrastHelper.cs
- ComplexType.cs
- Point.cs
- MembershipPasswordException.cs
- EventPropertyMap.cs
- StylusPlugin.cs
- StrokeIntersection.cs
- BooleanConverter.cs
- SqlDelegatedTransaction.cs
- CapacityStreamGeometryContext.cs
- HttpPostProtocolImporter.cs
- SmiRecordBuffer.cs
- StateManagedCollection.cs