dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Acti


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Activation ActivatorLevel.cs,NONE,1.1 IActivator.cs,NONE,1.1 IConstructionCallMessage.cs,NONE,1.1 IConstructionReturnMessage.cs,NONE,1.1 Makefile,NONE,1.1 UrlAttribute.cs,NONE,1.1
Date: Thu, 17 Apr 2003 06:36:11 -0400

Update of 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Remoting/Activation
In directory 
subversions:/tmp/cvs-serv31157/runtime/System/Runtime/Remoting/Activation

Added Files:
        ActivatorLevel.cs IActivator.cs IConstructionCallMessage.cs 
        IConstructionReturnMessage.cs Makefile UrlAttribute.cs 
Log Message:


Stub out a large number of classes under the "System.Runtime.Remoting"
namespace; add the "CONFIG_REMOTING" define to selection compilation of
remoting.


--- NEW FILE ---
/*
 * ActivatorLevel.cs - Implementation of the
 *                      "System.Runtime.Remoting.Activation.ActivatorLevel" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Activation
{

#if CONFIG_REMOTING

[Serializable]
public enum ActivatorLevel
{
        Construction = 0x0004,
        Context      = 0x0008,
        Process      = 0x0010,
        AppDomain    = Construction | Context,
        Machine      = Construction | Process

}; // enum ActivatorLevel

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Activation

--- NEW FILE ---
/*
 * IActivator.cs - Implementation of the
 *                      "System.Runtime.Remoting.Activation.IActivator" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Activation
{

#if CONFIG_REMOTING

public interface IActivator
{

        // Get the level of this activator.
        ActivatorLevel Level { get; }

        // Get or set the next activator in the chain.
        IActivator NextActivator { get; set; }

        // Activate a new instance of a type.
        IConstructionReturnMessage Activate(IConstructionCallMessage msg);

}; // interface IActivator

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Activation

--- NEW FILE ---
/*
 * IConstructionCallMessage.cs - Implementation of the
 *              "System.Runtime.Remoting.Activation.IConstructionCallMessage" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Activation
{

#if CONFIG_REMOTING

using System.Collections;
using System.Runtime.Remoting.Messaging;

public interface IConstructionCallMessage
        : IMethodCallMessage, IMethodMessage, IMessage
{

        // Get the type of activation.
        Type ActivationType { get; }

        // Get the name of the type of activation.
        String ActivationTypeName { get; }

        // Get or set the activator to use for this message.
        IActivator Activator { get; set; }

        // Get the call site attributes.
        Object[] CallSiteActivationAttributes { get; }

        // Get the context properties.
        IList ContextProperties { get; }

}; // interface IConstructionCallMessage

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Activation

--- NEW FILE ---
/*
 * IConstructionReturnMessage.cs - Implementation of the
 *              "System.Runtime.Remoting.Activation.IConstructionReturnMessage" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Activation
{

#if CONFIG_REMOTING

using System.Collections;
using System.Runtime.Remoting.Messaging;

public interface IConstructionReturnMessage
        : IMethodReturnMessage, IMethodMessage, IMessage
{

        // Does not have any members.

}; // interface IConstructionReturnMessage

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Activation

--- NEW FILE ---

# The build is done in "runtime", so cd up and use that Makefile.

all:
        (cd ../../../..;make)

--- NEW FILE ---
/*
 * UrlAttribute.cs - Implementation of the
 *                      "System.Runtime.Remoting.Activation.UrlAttribute" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Runtime.Remoting.Activation
{

#if CONFIG_REMOTING

using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Contexts;

public sealed class UrlAttribute : ContextAttribute
{
        // Internal state.
        private String callSiteUrl;

        // Constructor.
        public UrlAttribute(String callSiteURL)
                        : base("callSiteURL")
                        {
                                if(callSiteURL == null)
                                {
                                        throw new 
ArgumentNullException("callSiteURL");
                                }
                                this.callSiteUrl = callSiteURL;
                        }

        // Get the URL value.
        public String UrlValue
                        {
                                get
                                {
                                        return callSiteUrl;
                                }
                        }

        // Determine if two attributes are equal.
        public override bool Equals(Object obj)
                        {
                                UrlAttribute other = (obj as UrlAttribute);
                                if(other != null)
                                {
                                        if(callSiteUrl == other.callSiteUrl)
                                        {
                                                return base.Equals(obj);
                                        }
                                        else
                                        {
                                                return false;
                                        }
                                }
                                else
                                {
                                        return false;
                                }
                        }

        // Get a hash code for this object.
        public override int GetHashCode()
                        {
                                return callSiteUrl.GetHashCode();
                        }

        // Get the properties for a new construction context.
        public override void GetPropertiesForNewContext
                                (IConstructionCallMessage ctorMsg)
                        {
                                // Nothing to do here.
                        }

        // Determine if a context is OK with respect to this attribute.
        public override bool IsContextOK
                                (Context ctx, IConstructionCallMessage msg)
                        {
                                // Nothing to do here except say "no".
                                return false;
                        }

}; // class UrlAttribute

#endif // CONFIG_REMOTING

}; // namespace System.Runtime.Remoting.Activation





reply via email to

[Prev in Thread] Current Thread [Next in Thread]