1 // 2 // System.EnterpriseServices.CompensatingResourceManager.LogRecord.cs 3 // 4 // Author: 5 // Tim Coleman (tim@timcoleman.com) 6 // 7 // Copyright (C) Tim Coleman, 2002 8 // 9 10 // 11 // Permission is hereby granted, free of charge, to any person obtaining 12 // a copy of this software and associated documentation files (the 13 // "Software"), to deal in the Software without restriction, including 14 // without limitation the rights to use, copy, modify, merge, publish, 15 // distribute, sublicense, and/or sell copies of the Software, and to 16 // permit persons to whom the Software is furnished to do so, subject to 17 // the following conditions: 18 // 19 // The above copyright notice and this permission notice shall be 20 // included in all copies or substantial portions of the Software. 21 // 22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 29 // 30 31 using System; 32 using System.EnterpriseServices; 33 34 namespace System.EnterpriseServices.CompensatingResourceManager { 35 36 public sealed class LogRecord { 37 38 #region Fields 39 40 LogRecordFlags flags; 41 object record; 42 int sequence; 43 44 #endregion // Fields 45 46 #region Constructors 47 48 [MonoTODO] LogRecord()49 internal LogRecord () 50 { 51 } 52 53 [MonoTODO] LogRecord(_LogRecord logRecord)54 internal LogRecord (_LogRecord logRecord) 55 { 56 flags = (LogRecordFlags) logRecord.dwCrmFlags; 57 sequence = logRecord.dwSequenceNumber; 58 record = logRecord.blobUserData; 59 } 60 61 #endregion // Constructors 62 63 #region Properties 64 65 public LogRecordFlags Flags { 66 get { return flags; } 67 } 68 69 public object Record { 70 get { return record; } 71 } 72 73 public int Sequence { 74 get { return sequence; } 75 } 76 77 #endregion // Properties 78 } 79 80 #pragma warning disable 649 81 internal struct _LogRecord { 82 83 #region Fields 84 85 public int dwCrmFlags; 86 public int dwSequenceNumber; 87 public object blobUserData; // FIXME: This is not the correct type 88 89 #endregion // Fields 90 } 91 #pragma warning restore 649 92 } 93