Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
//
// System.EnterpriseServices.CompensatingResourceManager.ApplicationCrmEnabledAttribute.cs
//
// Author:
// Alejandro Sánchez Acosta (raciel@es.gnu.org)
//
// (C) Alejandro Sánchez Acosta
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.EnterpriseServices.CompensatingResourceManager {
/// <summary>
/// ApplicationCrmEnable Attribute for classes.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly)]
[ComVisible(false)]
[ProgId("System.EnterpriseServices.Crm.ApplicationCrmEnabledAttribute")]
public sealed class ApplicationCrmEnabledAttribute : Attribute
{
bool val;
public ApplicationCrmEnabledAttribute()
{
val = true;
}
public ApplicationCrmEnabledAttribute (bool val)
{
this.val = val;
}
public bool Value
{
get
{
return val;
}
}
}
}

View File

@@ -0,0 +1,53 @@
2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
* ClerkInfo.cs: Fixed line endings. Set eol-style to CRLF.
* LogRecordFlags.cs: Fixed line endings. Set eol-style to CRLF.
* Clerk.cs: Fixed line endings. Set eol-style to CRLF.
* LogRecord.cs: Fixed line endings. Set eol-style to CRLF.
* ApplicationCrmEnabledAttribute.cs: Set eol-style to native.
* CompensatorOptions.cs: Fixed line endings. Set eol-style to CRLF.
* TransactionState.cs: Fixed line endings. Set eol-style to CRLF.
* ClerkMonitor.cs: Fixed line endings. Set eol-style to CRLF.
* Compensator.cs: Set eol-style to native.
2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
* Compensator.cs: fixed return value of CommitRecord method
2004-06-11 Gert Driesen <drieseng@users.sourceforge.net>
* ApplicationCrmEnabledAttribute: added missing
2004-05-15 Gert Driesen (drieseng@users.sourceforge.net)
* ClerkInfo.cs: added internal ctor
2004-05-13 Mike Kestner <mkestner@ximian.com>
* ApplicationCrmEnabledAttribute.cs : add ComVisible. Hide val field.
* ClerkInfo.cs : stub
* ClerkMonitor.cs : stub
2002-11-20 Alejandro Sánchez Acosta <raciel@es.gnu.org>
* ApplicationCrmEnabledAttribute.cs added.
2002-08-13 Tim Coleman <tim@timcoleman.com>
* Clerk.cs:
* Compensator.cs:
New stubs added.
2002-08-07 Tim Coleman <tim@timcoleman.com>
* CompensatorOptions.cs:
* LogRecordFlags.cs:
* TransactionState.cs:
Changed enum values to agree with .NET
* LogRecord.cs:
New stubs added
2002-08-06 Tim Coleman <tim@timcoleman.com>
* ChangeLog.cs:
* CompensatorOptions.cs:
* LogRecordFlags.cs:
* TransactionState.cs:
New stubs added

View File

@@ -0,0 +1,105 @@
//
// System.EnterpriseServices.CompensatingResourceManager.Clerk.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2002
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.EnterpriseServices;
namespace System.EnterpriseServices.CompensatingResourceManager {
public sealed class Clerk {
#region Constructors
//internal Clerk (CrmLogControl logControl)
//{
//}
[MonoTODO]
public Clerk (string compensator, string description, CompensatorOptions flags)
{
throw new NotImplementedException ();
}
[MonoTODO]
public Clerk (Type compensator, string description, CompensatorOptions flags)
{
throw new NotImplementedException ();
}
#endregion // Constructors
#region Properties
public int LogRecordCount {
[MonoTODO]
get { throw new NotImplementedException (); }
}
public string TransactionUOW {
[MonoTODO]
get { throw new NotImplementedException (); }
}
#endregion // Properties
#region Methods
[MonoTODO]
~Clerk ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void ForceLog ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void ForceTransactionToAbort ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void ForgetLogRecord ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void WriteLogRecord (object record)
{
throw new NotImplementedException ();
}
#endregion // Methods
}
}

View File

@@ -0,0 +1,100 @@
// System.EnterpriseServices.CompensatingResourceManager.ClerkInfo.cs
//
// Author: Mike Kestner (mkestner@ximian.com)
//
// Copyright (C) 2004 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace System.EnterpriseServices.CompensatingResourceManager {
public sealed class ClerkInfo
{
[MonoTODO]
~ClerkInfo ()
{
throw new NotImplementedException ();
}
#region Constructors
// FIXME we should actually have this constructor
// internal ClerkInfo(System.EnterpriseServices.CompensatingResourceManager.CrmMonitor monitor,
// System.EnterpriseServices.CompensatingResourceManager._IMonitorClerks clerks)
// but we currently don't have these types
internal ClerkInfo ()
{
}
#endregion Constructors
#region Properties
[MonoTODO]
public string ActivityId {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public Clerk Clerk {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public string Compensator {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public string Description {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public string InstanceId {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public string TransactionUOW {
get {
throw new NotImplementedException ();
}
}
#endregion
}
}

View File

@@ -0,0 +1,93 @@
// System.EnterpriseServices.CompensatingResourceManager.ClerkMonitor.cs
//
// Author: Mike Kestner (mkestner@ximian.com)
//
// Copyright (C) 2004 Novell, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
namespace System.EnterpriseServices.CompensatingResourceManager {
public sealed class ClerkMonitor : IEnumerable {
[MonoTODO]
~ClerkMonitor ()
{
}
#region Constructors
[MonoTODO]
public ClerkMonitor ()
{
throw new NotImplementedException ();
}
#endregion
#region Properties
[MonoTODO]
public int Count {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public ClerkInfo this [string index] {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public ClerkInfo this [int index] {
get {
throw new NotImplementedException ();
}
}
#endregion
#region Properties
[MonoTODO]
public IEnumerator GetEnumerator ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void Populate ()
{
throw new NotImplementedException ();
}
#endregion
}
}

View File

@@ -0,0 +1,114 @@
//
// System.EnterpriseServices.CompensatingResourceManager.Compensator.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2002
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.EnterpriseServices;
namespace System.EnterpriseServices.CompensatingResourceManager {
public class Compensator : ServicedComponent{
#region Constructors
[MonoTODO]
public Compensator ()
{
throw new NotImplementedException ();
}
#endregion // Constructors
#region Properties
public Clerk Clerk {
[MonoTODO]
get { throw new NotImplementedException (); }
}
#endregion // Properties
#region Methods
[MonoTODO]
public virtual bool AbortRecord (LogRecord rec)
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void BeginAbort (bool fRecovery)
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void BeginCommit (bool fRecovery)
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void BeginPrepare ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual bool CommitRecord (LogRecord rec)
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void EndAbort ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void EndCommit ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual bool EndPrepare ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual bool PrepareRecord (LogRecord rec)
{
throw new NotImplementedException ();
}
#endregion // Methods
}
}

View File

@@ -0,0 +1,43 @@
//
// System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2002
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace System.EnterpriseServices.CompensatingResourceManager {
[Flags]
[Serializable]
public enum CompensatorOptions {
PreparePhase = 0x1,
CommitPhase = 0x2,
AbortPhase = 0x4,
AllPhases = 0x7,
FailIfInDoubtsRemain = 0x10
}
}

View File

@@ -0,0 +1,90 @@
//
// System.EnterpriseServices.CompensatingResourceManager.LogRecord.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2002
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.EnterpriseServices;
namespace System.EnterpriseServices.CompensatingResourceManager {
public sealed class LogRecord {
#region Fields
LogRecordFlags flags;
object record;
int sequence;
#endregion // Fields
#region Constructors
[MonoTODO]
internal LogRecord ()
{
}
[MonoTODO]
internal LogRecord (_LogRecord logRecord)
{
flags = (LogRecordFlags) logRecord.dwCrmFlags;
sequence = logRecord.dwSequenceNumber;
record = logRecord.blobUserData;
}
#endregion // Constructors
#region Properties
public LogRecordFlags Flags {
get { return flags; }
}
public object Record {
get { return record; }
}
public int Sequence {
get { return sequence; }
}
#endregion // Properties
}
internal struct _LogRecord {
#region Fields
public int dwCrmFlags;
public int dwSequenceNumber;
public object blobUserData; // FIXME: This is not the correct type
#endregion // Fields
}
}

View File

@@ -0,0 +1,45 @@
//
// System.EnterpriseServices.CompensatingResourceManager.LogRecordFlags.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2002
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace System.EnterpriseServices.CompensatingResourceManager {
[Flags]
[Serializable]
public enum LogRecordFlags {
ForgetTarget = 0x1,
WrittenDuringPrepare = 0x2,
WrittenDuringCommit = 0x4,
WrittenDuringAbort = 0x8,
WrittenDurringRecovery = 0x10, // Typo present in .NET
WrittenDuringReplay = 0x20,
ReplayInProgress = 0x40
}
}

View File

@@ -0,0 +1,41 @@
//
// System.EnterpriseServices.CompensatingResourceManager.TransactionState.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2002
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace System.EnterpriseServices.CompensatingResourceManager {
[Serializable]
public enum TransactionState {
Active = 0x0,
Committed = 0x1,
Aborted = 0x2,
Indoubt = 0x3
}
}