GetActivator() static private method

static private GetActivator ( ) : IActivator
return IActivator
 private static void InitActivationServices()
 {
     if (ActivationServices.activator == null)
     {
         ActivationServices.activator = ActivationServices.GetActivator();
         if (ActivationServices.activator == null)
         {
             throw new RemotingException(string.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_BadInternalState_ActivationFailure"), Array.Empty <object>()));
         }
     }
 }
 public virtual IConstructionReturnMessage Activate(IConstructionCallMessage ctorMsg)
 {
     if ((ctorMsg == null) || RemotingServices.IsTransparentProxy(ctorMsg))
     {
         throw new ArgumentNullException("ctorMsg");
     }
     ctorMsg.Properties["Permission"] = "allowed";
     if (!RemotingConfigHandler.IsActivationAllowed(ctorMsg.ActivationTypeName))
     {
         throw new RemotingException(string.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_Activation_PermissionDenied"), new object[] { ctorMsg.ActivationTypeName }));
     }
     if (ctorMsg.ActivationType == null)
     {
         throw new RemotingException(string.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_BadType"), new object[] { ctorMsg.ActivationTypeName }));
     }
     return(ActivationServices.GetActivator().Activate(ctorMsg));
 }
Example #3
0
 public virtual IConstructionReturnMessage Activate(IConstructionCallMessage ctorMsg)
 {
     ctorMsg.Activator = this.m_NextActivator;
     return(ActivationServices.GetActivator().Activate(ctorMsg));
 }
 internal static void Initialize()
 {
     ActivationServices.GetActivator();
 }