2007-01-24 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
[mono.git] / mcs / class / corlib / System.Threading / HostExecutionContextManager.cs
index 8580db57bf656ef8c4cb1e7beaa4b96ef3e6c268..897024e5ce7104f1dedff5b056072f064e20e048 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
+using System.Security.Permissions;
 using System.Runtime.ConstrainedExecution;
-using System.Runtime.InteropServices;
 
 namespace System.Threading {
 
-       [ComVisible (false)]
        public class HostExecutionContextManager {
 
                public HostExecutionContextManager ()
@@ -47,14 +46,15 @@ namespace System.Threading {
                }
 
                [MonoTODO]
-               [ReliabilityContract (Consistency.WillNotCorruptState, CER.MayFail)]
-               public virtual void Revert (HostExecutionContextSwitcher hostContextSwitcher)
+               [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
+               public virtual void Revert (object previousState)
                {
                        throw new NotImplementedException ();
                }
 
                [MonoTODO]
-               public virtual HostExecutionContextSwitcher SetHostExecutionContext (HostExecutionContext hostExecutionContext)
+               [SecurityPermission (SecurityAction.LinkDemand, Infrastructure = true)]
+               public virtual object SetHostExecutionContext (HostExecutionContext hostExecutionContext)
                {
                        throw new NotImplementedException ();
                }