public MembershipRebootIdentityManagerService(
            UserAccountService <TAccount> userAccountService,
            IUserAccountQuery <TAccount> userQuery,
            GroupService <TGroup> groupService,
            IGroupQuery groupQuery,
            bool includeAccountProperties = true)
        {
            if (userAccountService == null)
            {
                throw new ArgumentNullException("userAccountService");
            }
            if (userQuery == null)
            {
                throw new ArgumentNullException("userQuery");
            }

            this.userAccountService = userAccountService;
            this.userQuery          = userQuery;

            this.groupService = groupService;
            this.groupQuery   = groupQuery;

            this.metadataFunc = () => Task.FromResult(GetStandardMetadata(includeAccountProperties));

            if (typeof(RelationalUserAccount).IsAssignableFrom(typeof(TAccount)))
            {
                this.Filter = RelationalUserAccountQuery <TAccount> .DefaultFilter;
                this.Sort   = RelationalUserAccountQuery <TAccount> .DefaultSort;
            }
            else
            {
                this.Filter = DefaultFilter;
                this.Sort   = DefaultSort;
            }
        }
 public MembershipRebootIdentityManagerService(
     UserAccountService <TAccount> userAccountService,
     IUserAccountQuery <TAccount> userQuery,
     GroupService <TGroup> groupService,
     IGroupQuery groupQuery,
     UserManagementMetadata metadata)
     : this(userAccountService, userQuery, groupService, groupQuery, () => Task.FromResult(metadata))
 {
 }
        public IdentityRepository()
        {
            var settings = SecuritySettings.FromConfiguration();
            settings.RequireAccountVerification = false;
            var config = new MembershipRebootConfiguration(settings);
            var uarepo = new BrockAllen.MembershipReboot.Ef.DefaultUserAccountRepository();
            this.userSvc = new UserAccountService(config, uarepo);
            this.userQuery = uarepo;

            var grpRepo = new BrockAllen.MembershipReboot.Ef.DefaultGroupRepository();
            this.groupSvc = new GroupService(config.DefaultTenant, grpRepo);
            this.groupQuery = grpRepo;
        }
Esempio n. 4
0
 public DashboardDriver(
     ICRMContentOwnershipService crmContentOwnershipService,
     IOrchardServices orchardServices,
     IGroupQuery groupQuery,
     IBasicDataService basicDataService,
     IProjectionManagerWithDynamicSort projectionManagerWithDynamicSort
     )
     : base(orchardServices)
 {
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.groupQuery = groupQuery;
     this.projectionManagerWithDynamicSort = projectionManagerWithDynamicSort;
     this.basicDataService = basicDataService;
 }
 public MembershipRebootIdentityManagerService(
     UserAccountService <TAccount> userAccountService,
     IUserAccountQuery <TAccount> userQuery,
     GroupService <TGroup> groupService,
     IGroupQuery groupQuery,
     Func <Task <IdentityManagerMetadata> > metadataFunc)
     : this(userAccountService, userQuery, groupService, groupQuery)
 {
     if (metadataFunc == null)
     {
         throw new ArgumentNullException("metadataFunc");
     }
     this.metadataFunc = metadataFunc;
 }
 public TicketsForContentItemDriver(
     IWorkContextAccessor workContextAccessor,
     IOrchardServices services,
     ISearchTicketService searchTicketService,
     ICRMContentOwnershipService crmContentOwnershipService,
     IGroupQuery groupQuery,
     IBasicDataService basicDataService)
     : base(services)
 {
     this.searchTicketService        = searchTicketService;
     this.workContextAccessor        = workContextAccessor;
     this.crmContentOwnershipService = crmContentOwnershipService;
     this.groupQuery       = groupQuery;
     this.basicDataService = basicDataService;
 }
Esempio n. 7
0
        public IdentityRepository()
        {
            var settings = SecuritySettings.FromConfiguration();

            settings.RequireAccountVerification = false;
            var config = new MembershipRebootConfiguration(settings);
            var uarepo = new BrockAllen.MembershipReboot.Ef.DefaultUserAccountRepository();

            this.userSvc   = new UserAccountService(config, uarepo);
            this.userQuery = uarepo;

            var grpRepo = new BrockAllen.MembershipReboot.Ef.DefaultGroupRepository();

            this.groupSvc   = new GroupService(config.DefaultTenant, grpRepo);
            this.groupQuery = grpRepo;
        }
        public BridgeTests()
        {
            hueDotNetconfigurationReader = new Implementation.HueDotNetConfigurationReader();

            bridgeQuery = new Implementation.BridgeQuery();
            bridgeCommand = new Implementation.BridgeCommand(hueDotNetconfigurationReader);

            lightQuery = new Implementation.LightQuery(hueDotNetconfigurationReader);
            lightSwitch = new Implementation.LightSwitch(hueDotNetconfigurationReader, lightQuery);
            colourQuery = new Implementation.ColourQuery();
            lightColourSwitch = new Implementation.LightColourSwitch(hueDotNetconfigurationReader, lightQuery, colourQuery);
            lightDimmerSwitch = new Implementation.LightDimmerSwitch(hueDotNetconfigurationReader, lightQuery);
            lightFlashSwitch = new Implementation.LightFlashSwitch(hueDotNetconfigurationReader);
            lightColourLoopSwitch = new Implementation.LightColourLoopSwitch(hueDotNetconfigurationReader);

            groupQuery = new Implementation.GroupQuery(hueDotNetconfigurationReader);
        }
Esempio n. 9
0
 public HomeController(GroupService groupSvc, IGroupQuery query)
 {
     this.groupSvc = groupSvc;
     this.query    = query;
 }
 public HomeController(GroupService groupSvc, IGroupQuery query)
 {
     this.groupSvc = groupSvc;
     this.query = query;
 }