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; }
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; }
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); } }