Пример #1
0
 public GetAllNotificationsQuery(IUserStore _UserStore, INotificationBox _NotificationBox,
                                 UserAccount _CurrentAccount, IdentityUser _CurrentUser)
 {
     this._CurrentUser     = _CurrentUser;
     this._CurrentAccount  = _CurrentAccount;
     this._NotificationBox = _NotificationBox;
     this._UserStore       = _UserStore;
 }
Пример #2
0
 public GetAllPostsQuery(IdentityUser CurrentUser, UserAccount ExistingAccount, IFriendsListStore _FriendListStore,
                         INotificationBox _NotificationBox, IUserStore _UserStore, IPostStore _PostStore)
 {
     this.CurrentUser      = CurrentUser;
     this.ExistingAccount  = ExistingAccount;
     this._FriendListStore = _FriendListStore;
     this._NotificationBox = _NotificationBox;
     this._UserStore       = _UserStore;
     this._PostStore       = _PostStore;
 }
Пример #3
0
 public AdminController(UserManager <User> userManager, SignInManager <User> signInManager, ApplicationDbContext _context, IAdminRequestStore _AdminRequestStore,
                        INotificationBox _notificationBox, ILogger <AccountsController> _logger, IUserStore _userStore)
 {
     this.userManager        = userManager;
     this.signInManager      = signInManager;
     this._context           = _context;
     this._AdminRequestStore = _AdminRequestStore;
     this._logger            = _logger;
     this._notificationBox   = _notificationBox;
     this._userStore         = _userStore;
 }
Пример #4
0
        public MapManager(IMapsetStore store, NotificationBox notificationBox, IMapSelection selection)
        {
            if (store == null)
            {
                throw new ArgumentNullException(nameof(store));
            }

            this.store           = store;
            this.notificationBox = notificationBox;
            this.selection       = selection;
        }
Пример #5
0
 public GroupsController(UserManager <User> userManager, SignInManager <User> signInManager, ApplicationDbContext _context,
                         IUserStore _userStore, IGroupStore _GroupStore, ILogger <GroupsController> _logger, IGroupRequestStore _GroupRequestStore,
                         INotificationBox _notificationBox)
 {
     this.userManager        = userManager;
     this.signInManager      = signInManager;
     this._context           = _context;
     this._userStore         = _userStore;
     this._GroupStore        = _GroupStore;
     this._logger            = _logger;
     this._GroupRequestStore = _GroupRequestStore;
     this._notificationBox   = _notificationBox;
 }
Пример #6
0
        public MainWindowViewModel(INotificationBox notificationBoxProvider)
        {
            var baseHost = new BaseHost();

            // ReSharper disable LocalizableElement
            baseHost.ApplicationName = @"Agent";

            // ReSharper restore LocalizableElement
            LogManager.ConfigureLogging(baseHost);
            this.notificationBoxProvider = notificationBoxProvider;
            this.Title = "AgentApplicationTitle";

            ///Resources.AgentApplicationTitle;
            // this.serverViewViewModel = new ServerViewControlViewModel(notificationBoxProvider);
        }
Пример #7
0
 public PostsController(UserManager <User> userManager, SignInManager <User> signInManager, ApplicationDbContext _context,
                        IUserStore _userStore, IPostStore _postStore, ICommentStore _commentStore, CurrentPostDTO _currentpost,
                        IFriendsListStore _FriendListStore, INotificationBox _notificationBox, ILogger <PostsController> _logger)
 {
     this.userManager      = userManager;
     this.signInManager    = signInManager;
     this._context         = _context;
     this._userStore       = _userStore;
     this._postStore       = _postStore;
     this._commentStore    = _commentStore;
     this._currentpost     = _currentpost;
     this._FriendListStore = _FriendListStore;
     this._notificationBox = _notificationBox;
     this._logger          = _logger;
 }
Пример #8
0
 public AccountsController(UserManager <User> userManager, SignInManager <User> signInManager, ApplicationDbContext _context,
                           IUserStore _userStore, IFriendsListStore _FriendListStore, IRequestStore _RequestStore, INotificationBox _notificationBox,
                           IGroupStore GroupStore, ILogger <AccountsController> _logger, IAdminRequestStore _AdminRequestStore)
 {
     this.userManager        = userManager;
     this.signInManager      = signInManager;
     this._context           = _context;
     this._userStore         = _userStore;
     this._FriendListStore   = _FriendListStore;
     this._RequestStore      = _RequestStore;
     this._notificationBox   = _notificationBox;
     this.GroupStore         = GroupStore;
     this._logger            = _logger;
     this._AdminRequestStore = _AdminRequestStore;
     _mapper = new MapperConfiguration(cfg => cfg.AddProfile <EntityMapper>()).CreateMapper();
 }
        public MainWindowViewModel(INotificationBox notificationBoxProvider)
        {
            var baseHost = new BaseHost();

            // ReSharper disable LocalizableElement
            baseHost.ApplicationName = @"Agent";

            this.IconSource          = ServerViewControlViewModel.GreenIcon;
            this.host                = new AgentHost();
            this.ServiceDataReceiver = new ServiceDataReceiver();

            // ReSharper restore LocalizableElement
            LogManager.ConfigureLogging(baseHost);
            this.notificationBoxProvider = notificationBoxProvider;
            this.Title = Resources.AgentApplicationTitle;

            this.serverViewViewModel = new ServerViewControlViewModel(notificationBoxProvider, this);
        }
Пример #10
0
        public ServerViewControlViewModel(INotificationBox notificationBoxProvider, MainWindowViewModel mainWindowViewModel)
        {
            if (mainWindowViewModel == null)
            {
                throw new ArgumentNullException(@"mainWindowViewModel");
            }

            this.notificationBoxProvider = notificationBoxProvider;
            this.connect    = new DelegateCommand(this.ConnectPressed);
            this.disconnect = new DelegateCommand(this.DisconnectPressed);
            this.clear      = new DelegateCommand(this.ClearPressed);

            this.mainWindowViewModel = mainWindowViewModel;

            this.Infos = new ObservableCollection <string>();

            mainWindowViewModel.ServiceDataReceiver.ServiceErrorResponse += this.HandleServiceErrorResponse;
            mainWindowViewModel.ServiceDataReceiver.DiagnosticsResponse  += this.HandleDiagnosticsResponse;
        }
Пример #11
0
        public Api(IEnvConfiguration envConfig, NotificationBox notificationBox, DeepLinker deepLinker)
        {
            if (envConfig == null)
            {
                throw new ArgumentNullException(nameof(envConfig));
            }

            this.envConfig       = envConfig;
            this.notificationBox = notificationBox;

            this.providers = new Dictionary <ApiProviderType, IApiProvider>()
            {
                { ApiProviderType.Osu, new OsuApiProvider(this) },
                { ApiProviderType.Bloodcat, new BloodcatApiProvider(this) },
            };

            if (deepLinker != null)
            {
                deepLinker.LinkPath("api", OnDeepLinkApi);
            }
        }