Exemplo n.º 1
0
        private void AddServiceImpl(
            ITisServicesHost servicesHost,
            string applicationName,
            object oServiceInstance,
            ITisServiceInfo oServiceInfo,
            string sEventSourceBindingKey)
        {
            if (!StringUtil.CompareIgnoreCase(sEventSourceBindingKey, TisServicesConst.UNNAMED_INSTANCE))
            {
                List <TisEventParams> SupportedEvents = GetSupportedEvents(oServiceInfo);

                if (SupportedEvents.Count != 0)
                {
                    ITisEventsManager oEventsMngr = (ITisEventsManager)servicesHost.GetService(applicationName, "EventsManager");

                    CreateServiceEventInterceptorTypeIfNeeded(
                        applicationName,
                        oServiceInfo,
                        SupportedEvents);

                    CreateServiceEventHandlers(
                        oServiceInstance,
                        oServiceInfo,
                        sEventSourceBindingKey,
                        SupportedEvents,
                        oEventsMngr);
                }
            }
        }
 public TisPermissionValidatorContext(
     string applicationName,
     ITisServicesHost servicesHost)
 {
     ApplicationName = applicationName;
     ServicesHost    = servicesHost;
 }
Exemplo n.º 3
0
 public TisInternalValidationManager(
     string sApplicationName,
     ITisServicesHost oServicesHost,
     TisValidationContextManager validationContextMngr)
     : base(oServicesHost, sApplicationName)
 {
     m_validationContextMngr = validationContextMngr;
 }
Exemplo n.º 4
0
 public TisServiceCreatorContext(
     string applicationName,
     TisServiceKey serviceKey,
     ITisServicesHost servicesHost)
 {
     ApplicationName = applicationName;
     ServiceKey      = serviceKey;
     ServicesHost    = servicesHost;
 }
        public TisValidatorManager(
            string sApplicationName,
            ITisServicesHost oServicesHost)
            : base(oServicesHost, sApplicationName)
        {
            m_serviceRegistry =
                oServicesHost.GetServiceRegistry(sApplicationName);

            Refresh();
        }
Exemplo n.º 6
0
 public void SetContext(
     string sAppName,
     TisServiceKey oServiceKey,
     ITisServicesHost oServicesHost)
 {
     m_oContext = new TisServiceCreatorContext(
         sAppName,
         oServiceKey,
         oServicesHost);
 }
Exemplo n.º 7
0
        public TisValidationContextManager(
            string sApplicationName,
            ITisServicesHost oServicesHost)
        {
            m_applicationName = sApplicationName;

            m_servicesHost = oServicesHost;

            m_serviceRegistry =
                m_servicesHost.GetServiceRegistry(sApplicationName);

            Refresh();
        }
Exemplo n.º 8
0
 public static void AddService(
     ITisServicesHost servicesHost,
     string sAppName,
     object oServiceInstance,
     ITisServiceInfo oServiceInfo,
     string sEventSourceBindingKey)
 {
     if (ShouldCreateAdapter(oServiceInstance, sEventSourceBindingKey))
     {
         m_oServiceEventsAdapterBuilder.AddServiceImpl(
             servicesHost,
             sAppName,
             oServiceInstance,
             oServiceInfo,
             sEventSourceBindingKey);
     }
 }
Exemplo n.º 9
0
        protected override void SetCreatorContextImpl(
            ITisServiceCreator oCreator,
            string sAppName,
            TisServiceKey oServiceKey,
            ITisServicesHost oServicesHost)
        {
            // Query for ISupportsCreatorContext interface
            ISupportsCreatorContext oTarget =
                oCreator as ISupportsCreatorContext;

            if (oTarget != null)
            {
                // Set context
                oTarget.SetContext(
                    sAppName,
                    oServiceKey,
                    oServicesHost);
            }
        }
        public TisApplicationServicesProvider(
            ITisServicesHost oServicesHost,
            string sAppName)
        {
            if (oServicesHost == null)
            {
                ExceptionUtil.RaiseArgumentNullException(
                    "oServicesHost",
                    "can't be null",
                    MethodInfo.GetCurrentMethod());
            }

            if (!StringUtil.IsStringInitialized(sAppName))
            {
                ExceptionUtil.RaiseArgumentNullException(
                    "sAppName",
                    "Must be initialized",
                    MethodInfo.GetCurrentMethod());
            }

            ServicesHost    = oServicesHost;
            ApplicationName = sAppName;
        }
Exemplo n.º 11
0
        public virtual void SetCreatorContext(
            ITisServiceCreator oCreator,
            string sAppName,
            TisServiceKey oServiceKey,
            ITisServicesHost oServicesHost)
        {
            // Perform context set
            SetCreatorContextImpl(
                oCreator,
                sAppName,
                oServiceKey,
                oServicesHost);

            // If has next setter in the chain
            if (Next != null)
            {
                // Forward the request to next setter
                Next.SetCreatorContext(
                    oCreator,
                    sAppName,
                    oServiceKey,
                    oServicesHost);
            }
        }
Exemplo n.º 12
0
 public TisValidationProviderMngr(
     string sApplicationName,
     ITisServicesHost oServicesHost)
     : base(oServicesHost, sApplicationName)
 {
 }
Exemplo n.º 13
0

        
Exemplo n.º 14
0
 protected abstract void SetCreatorContextImpl(
     ITisServiceCreator oCreator,
     string sAppName,
     TisServiceKey oServiceKey,
     ITisServicesHost oServicesHost);
 public void SetServicesHost(ITisServicesHost servicesHost)
 {
     ServicesHost = servicesHost;
 }