コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizationServiceRepository"/> class.
 /// </summary>
 /// <param name="componentSettings">The component settings.</param>
 public AuthorizationServiceRepository(IComponentSettingsEntities componentSettings)
 {
     if (componentSettings != null)
     {
         this.authorizedUserClient = DIContainer.Instance.Resolve<IAuthorizedUserClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameter, componentSettings.AuthorizationServiceBaseAddress) });
         this.applicationRoleClient = DIContainer.Instance.Resolve<IApplicationRoleClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameter, componentSettings.AuthorizationServiceBaseAddress) });
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationServiceRepository" /> class.
 /// </summary>
 public AuthorizationServiceRepository()
 {
     this.authorizedUserClient = DIContainer.Instance.Resolve<IAuthorizedUserClient>(ResolverOverrideForAuthorization());
     this.applicationRoleClient = DIContainer.Instance.Resolve<IApplicationRoleClient>(ResolverOverrideForAuthorization());
 }