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; }
public TisInternalValidationManager( string sApplicationName, ITisServicesHost oServicesHost, TisValidationContextManager validationContextMngr) : base(oServicesHost, sApplicationName) { m_validationContextMngr = validationContextMngr; }
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(); }
public void SetContext( string sAppName, TisServiceKey oServiceKey, ITisServicesHost oServicesHost) { m_oContext = new TisServiceCreatorContext( sAppName, oServiceKey, oServicesHost); }
public TisValidationContextManager( string sApplicationName, ITisServicesHost oServicesHost) { m_applicationName = sApplicationName; m_servicesHost = oServicesHost; m_serviceRegistry = m_servicesHost.GetServiceRegistry(sApplicationName); Refresh(); }
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); } }
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; }
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); } }
public TisValidationProviderMngr( string sApplicationName, ITisServicesHost oServicesHost) : base(oServicesHost, sApplicationName) { }
protected abstract void SetCreatorContextImpl( ITisServiceCreator oCreator, string sAppName, TisServiceKey oServiceKey, ITisServicesHost oServicesHost);
public void SetServicesHost(ITisServicesHost servicesHost) { ServicesHost = servicesHost; }