Esempio n. 1
0
 public UserProfileController(IUserService userService, ICategoryService categoryService, IFriendService friendService, IUserImageService userImageService)
 {
     this.userService      = userService;
     this.categoryService  = categoryService;
     this.friendService    = friendService;
     this.userImageService = userImageService;
 }
Esempio n. 2
0
        internal UserViewModel(string name, IUserImageService imageService = null)
        {
            this.Name = name;

            this.Image = imageService == null
                ? null
                : imageService.GetUserImage(name);
        }
Esempio n. 3
0
 public UserController(
     IUserSettingsService userSettingsService,
     IUserService userService,
     IUserSearchService userSearchService,
     IUserProfileService userProfileService,
     IUserImageService userImageService,
     IFriendsInvitationService friendsInvitationService)
 {
     _userSettingsService      = userSettingsService;
     _userService              = userService;
     _userSearchService        = userSearchService;
     _userProfileService       = userProfileService;
     _userImageService         = userImageService;
     _friendsInvitationService = friendsInvitationService;
 }
Esempio n. 4
0
        public UserService(ILogger <UserService> logger,
                           ISystemClock systemClock,
                           IPermissionsService permissionsService,
                           IUserAdminDataProvider userAdminDataProvider,
                           IUserCommand userCommand,
                           IEmailService emailService,
                           IOptionsSnapshot <GovNotifyConfiguration> notifyConfig,
                           IOptionsSnapshot <ApplicationGateway> gatewayConfig,
                           IUserImageService imageService,
                           IImageBlobStorageProvider blobStorageProvider)
        {
            _permissionsService    = permissionsService;
            _userAdminDataProvider = userAdminDataProvider;
            _systemClock           = systemClock;
            _logger              = logger;
            _userCommand         = userCommand;
            _emailService        = emailService;
            _fqdn                = gatewayConfig.Value.FQDN;
            _imageService        = imageService;
            _blobStorageProvider = blobStorageProvider;

            // Notification template Ids
            _registrationEmailId = notifyConfig.Value.RegistrationEmailTemplateId;
        }
        public MainWindow(SettingsViewModel settings)
        {
            if (settings == null)
                throw new ArgumentNullException("settings");
            
            this.settings = settings;

            this.tfsConnector = new TfsConnector(this.settings.TfsConnection);

            var cache = new MongoDbCache<ChangeInfo>(
                this.settings.MongoConnection,
                MongoDbCache.DatabaseName,
                "changeStats");

            this.analystics = new TfsAnalytics(this.tfsConnector, cache);

            this.imageService = new DirectoryUserImageService(this.settings.DomainController, this.settings.DirectoryImageProperty);

            this.DataContext = this;

            this.Projects = new ObservableCollection<TeamProject>(this.tfsConnector.GeTeamProjects());

            this.Changesets = new ObservableCollection<ChangesetViewModel>();
            this.Changes = new ObservableCollection<ChangeViewModel>();
            
            this.InitializeComponent();

            Observable.FromEvent<EventHandler, EventArgs>(
                handler => (sender, e) => handler(e),
                h => this.RedrawCharts += h,
                h => this.RedrawCharts -= h)
                .Throttle(TimeSpan.FromSeconds(3)).ObserveOn(Scheduler.CurrentThread).Subscribe(l =>
                {
                    this.Dispatcher.Invoke(this.DrawCharts);
                });
        }
 public UserImagesController(IUserImageService userImageService)
 {
     _userImageService = userImageService;
 }
 public UserImageController(IUserService userService, IUserImageService userImageService, IMapper mapper) : base(mapper)
 {
     _userService      = userService;
     _userImageService = userImageService;
 }
Esempio n. 8
0
 public HomeController(IUserImageService userImageService)
 {
     this.userImageService = userImageService;
 }
Esempio n. 9
0
 public UserImageController(IUserImageService userImageService, IUserService userService)
 {
     this.userImageService = userImageService;
     this.userService      = userService;
 }
Esempio n. 10
0
 public UserController(IUserImageService userImageService, UserManager <AppUser> userManager)
 {
     _userImageService = userImageService;
     _userManager      = userManager;
 }
Esempio n. 11
0
 public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IUserImageService userImageService)
 {
     _userManager      = userManager;
     _signInManager    = signInManager;
     _userImageService = userImageService;
 }
Esempio n. 12
0
 public UserManager(IUserDal userDal, IUserImageService userImageService)
 {
     _userDal          = userDal;
     _userImageService = userImageService;
 }