public TimeSheetsMethods(IMapper mapper, IUserMethods users, INotificationMethods notificationMethods, ApplicationDbContext context) { //var optionsBuilder = new DbContextOptionsBuilder<ApplicationDbContext>(); //optionsBuilder.UseSqlServer(Setting.ConnectionString); //db = new ApplicationDbContext(optionsBuilder.Options); db = context; _mapper = mapper; _users = users; this.notificationMethods = notificationMethods; }
public Client(string name, IPEndPoint iPEndPoint, Socket socket, Dictionary <IPEndPoint, string> connectedClients, IStringMethods stringMethods, IUserMethods userMethods) { signalHandler += HandleConsoleSignal; SetSignalHandler(signalHandler, true); this.name = name; ConnectedClients = connectedClients; this.iPEndPoint = iPEndPoint; this.socket = socket; this.userMethods = userMethods; this.stringMethods = stringMethods; }
public HomeController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IUserMethods users, IUserLogsMethods userLogsMethods, IHttpContextAccessor accessor, IHubContext <ObserverHub> observerHub ) { _signInManager = signInManager; _userManager = userManager; _accessor = accessor; this.observerHub = observerHub; _users = users; _userLogsMethods = userLogsMethods; }
public Client(IStringMethods stringMethods, IUserMethods userMethods) { signalHandler += HandleConsoleSignal; SetSignalHandler(signalHandler, true); ConnectedClients = new Dictionary <IPEndPoint, string>(); socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); this.stringMethods = stringMethods; this.userMethods = userMethods; iPEndPoint = null; bool isStarted = false; while (isStarted != true) { Console.Write("Input your port: "); int port = userMethods.ReadPort(); try { foreach (var iPAdress in Dns.GetHostEntry(Dns.GetHostName()).AddressList) { if (iPAdress.AddressFamily == AddressFamily.InterNetwork) { iPEndPoint = new IPEndPoint(iPAdress, port); break; } } socket.Bind(iPEndPoint); isStarted = true; } catch (Exception) { Console.WriteLine("This port is already in use."); } } Console.Write("Input your name: "); name = userMethods.ReadName() + '(' + iPEndPoint.ToString() + ')'; Console.Write("Your full name is "); Console.WriteLine(name); Console.WriteLine(); this.userMethods.PrintUsingInformation(); Console.WriteLine(); }
public LiveObserverHost(IServiceProvider services, IConfiguration config, INotificationMethods notifications) { //IUserMethods users, _config = config; Services = services; //_users = users; _notifications = notifications; //_notificationMethods = notificationMethods; //systemAdminId = _config.GetValue<string>("Tokens:Admin"); //managerIds = _users.GetUsersInRole("Manager"); using (var scope = Services.CreateScope()) { var scopedProcessingService = scope.ServiceProvider .GetRequiredService <IUserMethods>(); _users = scopedProcessingService; } }
public static bool DeleteUser(IUserMethods userMethods, User user = null) { if (user == null) { user = UserSession.CurrentUser; } try { userMethods.RemoveUser(user); UserSession.CurrentUser = null; var session = new SessionIDManager(); session.RemoveSessionID(UserSession.CurrentContext); return(true); } catch { return(false); } }
public TimeSheetsController(ITimeSheetsMethods timeSheets, IUserMethods users) { _timeSheets = timeSheets; _users = users; }
public ProfileController(IUserMethods userMethods) { _userMethods = userMethods; }
public UsersController(IUserMethods userMethods, ILoginMethods loginMethods) { _userMethods = userMethods; _loginMethods = loginMethods; }
public ThreadController(IThreadMethods threadMethods, IPostMethods postMethods, IUserMethods userMethods) { _threadMethods = threadMethods; _postMethods = postMethods; _userMethods = userMethods; }
//private readonly IUserMethods _users; public UsersLogsController(IUserMethods users) : base(users) { //_users = users; }
public ManageController(IUserMethods userMethods, IRoleKeyMethods roleKeyMethods) { _userMethods = userMethods; this.roleKeyMethods = roleKeyMethods; }
//, IHubContext<ObserverHub> observerHub public UsersController(IUserMethods usersMethods, IHubContext <ObserverHub> observerHub, IConfiguration config) : base(usersMethods) { this.observerHub = observerHub; this.config = config; }
public Chat(IStringMethods stringMethods, IUserMethods userMethods) { this.stringMethods = stringMethods; this.userMethods = userMethods; ConnectedClientsHistory = new Dictionary <IPEndPoint, string>(); }
public Users(IUserMethods userMethods, IEmailTemplateMethods emailTemplateMethods) { _userMethods = userMethods; _emailTemplateMethods = emailTemplateMethods; }
public StoresController(IUserMethods userMethods) { _userMethods = userMethods; }
public PartsController(IUserMethods userMethods) { _userMethods = userMethods; }
public RegisterController(IUserMethods userMethods, IEmailTemplateMethods emailTemplateMethods) { _userMethods = userMethods; _emailTemplateMethods = emailTemplateMethods; }
public BaseSupervisorController(IUserMethods userMethods) { this._userMethods = userMethods; }
public LoginMethods(IFactory factory, IDataFetcher repoDataFetcher, IUserMethods userMethods) { _factory = factory; _repoDataFetcher = repoDataFetcher; _userMethods = userMethods; }
public OrdersController(IUserMethods userMethods) { _userMethods = userMethods; }
public TeamsController(ITeamsMethods teamsMethods, IUserMethods userMethods) { _teamsMethods = teamsMethods; this.userMethods = userMethods; }
public HomeController(IUserMethods userMethods, ICategoryMethods categoryMethods, IForumMethods forumMethods) { _userMethods = userMethods; _categoryMethods = categoryMethods; _forumMethods = forumMethods; }