public virtual void Bind(IRemotableCreekController controller)
        {
            if (controller == null)
            {
                throw new ArgumentNullException("controller");
            }
            if (!typeof(MarshalByRefObject).IsAssignableFrom(controller.GetType()))
            {
                throw new ArgumentException("Exported controller must be of type MarshallByRefObject", "controller");
            }

            try
            {
                // Expose the object directly by leveraging the already registered channels done by Quartz Scheduler
                RemotingServices.Marshal((MarshalByRefObject)controller, controller.GetType().Name);
                log.Info(string.Format(CultureInfo.InvariantCulture, "Successfully marhalled remotable controller under name '{0}'", controller.GetType().Name));
            }
            catch (RemotingException ex)
            {
                log.Error("RemotingException during Bind", ex);
            }
            catch (SecurityException ex)
            {
                log.Error("SecurityException during Bind", ex);
            }
            catch (Exception ex)
            {
                log.Error("Exception during Bind", ex);
            }
        }
        public virtual void UnBind(IRemotableCreekController controller)
        {
            if (controller == null)
            {
                throw new ArgumentNullException("controller");
            }
            if (!typeof(MarshalByRefObject).IsAssignableFrom(controller.GetType()))
            {
                throw new ArgumentException("Exported controller must be of type MarshallByRefObject", "controller");
            }

            try
            {
                RemotingServices.Disconnect((MarshalByRefObject)controller);
                log.Info("Successfully disconnected remotable controller");
            }
            catch (ArgumentException ex)
            {
                log.Error("ArgumentException during Unbind", ex);
            }
            catch (SecurityException ex)
            {
                log.Error("SecurityException during Unbind", ex);
            }
            catch (Exception ex)
            {
                log.Error("Exception during Unbind", ex);
            }
        }
Пример #3
0
 private void InitProxy()
 {
     try
     {
         if (remoteController == null)
         {
             remoteController = (IRemotableCreekController)Activator.GetObject(
                 typeof(IRemotableCreekController),
                 controllerHost);
         }
     }
     catch (Exception e)
     {
         throw new ApplicationException(string.Format("Could not get handle to remote controller: {0}", e.Message), e);
     }
 }
 public PauseContentFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #5
0
 public QueryDisclaimerFileFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #6
0
 public QueryContentSummaryFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
 public QueryDefaultValuesFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #8
0
 protected OperationFiller(IRemotableCreekController creekController)
 {
     _creekController = creekController;
 }
Пример #9
0
 public ContentGenFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #10
0
        static CommandHandler()
        {
            string sCreekRemotingUri = ConfigurationManager.AppSettings["CreekRemotingUri"];

            RemotableCreekController = CreekControllerProxy.ProxyFactory(sCreekRemotingUri);
        }
 public QueryWorkInProgressFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #12
0
 public DeployContentFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
 public OfflineContentFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #14
0
 public QueryContentVersionListFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #15
0
 public QueryDisplayNameFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
 public QueryPromoEventIdFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #17
0
 public QuerySysNotificationFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #18
0
 public QueryContentRecipesJsonFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #19
0
 public QueryOnlineFaqUrlFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #20
0
 public QueryHomeUrlFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
 public QueryIconFileFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #22
0
 protected DataProviderFiller(IRemotableCreekController creekController)
 {
     _creekController = creekController;
 }
 public QueryTorrentSeedDetailFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
 public QueryGaProfileIdFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #25
0
 public QuerySeedListFiller(IRemotableCreekController creekController)
     : base(creekController)
 {
 }
Пример #26
0
 public ContentDownloaderRequestProcessor(IRemotableCreekController creekController)
 {
     _creekController = creekController;
 }