Inheritance: IInstanceProvider, IContractBehavior
コード例 #1
0
ファイル: HostService.cs プロジェクト: htw-bui/OrkHub
   public HostService([ImportMany(typeof (IWCFService))] IEnumerable<Lazy<IWCFService, Dictionary<string, object>>> services, [Import] PolicyRetriever policyRetriever,
 [Import] DomainModelInstanceProvider domainModelInstanceProvider, [Import] CustomUserNameValidator customUserNameValidator)
   {
       m_Services = services;
         m_PolicyRetriever = policyRetriever;
         m_DomainModelInstanceProvider = domainModelInstanceProvider;
         m_CustomUserNameValidator = customUserNameValidator;
   }
コード例 #2
0
 public HostService([ImportMany(typeof(IWCFService))] IEnumerable <Lazy <IWCFService, Dictionary <string, object> > > services, [Import] PolicyRetriever policyRetriever,
                    [Import] DomainModelInstanceProvider domainModelInstanceProvider, [Import] CustomUserNameValidator customUserNameValidator)
 {
     m_Services                    = services;
     m_PolicyRetriever             = policyRetriever;
     m_DomainModelInstanceProvider = domainModelInstanceProvider;
     m_CustomUserNameValidator     = customUserNameValidator;
 }
コード例 #3
0
ファイル: DomainModelHost.cs プロジェクト: htw-bui/OrkHub
        internal DomainModelHost(DomainModelInstanceProvider instanceProvider, Type serviceType, Uri[] uris)
            : base(serviceType, uris)
        {
            m_InstanceProvider = instanceProvider;

              foreach (var cd in ImplementedContracts.Values)
              {
            cd.Behaviors.Add(m_InstanceProvider);
              }
        }
コード例 #4
0
ファイル: DomainModelHost.cs プロジェクト: htw-bui/OrkHub
        internal DomainModelHost(DomainModelInstanceProvider instanceProvider, Type serviceType, Uri[] uris)
            : base(serviceType, uris)
        {
            m_InstanceProvider = instanceProvider;

            foreach (var cd in ImplementedContracts.Values)
            {
                cd.Behaviors.Add(m_InstanceProvider);
            }
        }