public UploadService(IConfiguration config, IAdmin admin, PortfolioDbContext context, IArtAdmin art) { Configuration = config; _admin = admin; _context = context; _artAdmin = art; }
public VolunteerController(IDisaster disasterSvc, ICluster clusterSvc, IAdmin adminSvc, IMessageService messageSvc) { _disasterSvc = disasterSvc; _clusterSvc = clusterSvc; _adminSvc = adminSvc; _messageSvc = messageSvc; }
public AdminController() { IKernel ninjectKernel = new StandardKernel(); ninjectKernel.Bind <IAdmin>().To <Admins>(); repo = ninjectKernel.Get <IAdmin>(); }
/// <summary> /// Returns a list of refreshables for the organization within a capacity /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as Office 365 /// Global Administrator or Power BI Service Administrator) to call this API or /// authenticate via service principal. <br/><br/>**Required /// scope**: Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated /// permissions are supported. <br/>To set the permissions scope, see /// [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// Returns only the first n results. /// </param> /// <param name='expand'> /// Expands related entities inline, receives a comma-separated list of data /// types. Supported: capacities and groups /// </param> /// <param name='filter'> /// Filters the results based on a boolean condition /// </param> /// <param name='skip'> /// Skips the first n results. Use with top to fetch results beyond the first /// 1000. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Refreshables> GetRefreshablesAsync(this IAdmin operations, int top, string expand = default(string), string filter = default(string), int?skip = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetRefreshablesWithHttpMessagesAsync(top, expand, filter, skip, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public ScottFalboCodeModel(IAdmin admin, IUploadService upload, PortfolioDbContext context, IArtAdmin art) { _admin = admin; _upload = upload; _context = context; _art = art; }
private void buttonstart_Click(object sender, EventArgs e) { if (comboBoxuser.SelectedValue.Equals(textBoxpassword.Text)) { User u = (User)comboBoxuser.SelectedItem; Departament d = new Departament(); IUserType tipo = new IEmploye(); if (u.idDepartamento == 2) { tipo = new IAdmin(); //this.Hide(); } else if (u.idDepartamento == 3) { tipo = new IVigilant(); } else { tipo = new IEmploye(); } tipo.UserType(); } else { MessageBox.Show("¡Contraseña incorrecta!", "CellphoneStore", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
/// <summary> /// Returns the encryption keys for the tenant. /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as Office 365 /// Global Administrator or Power BI Service Administrator) to call this API. /// <br/><br/>**Required scope**: Tenant.Read.All or /// Tenant.ReadWrite.All<br/>To set the permissions scope, see [Register /// an app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TenantKeys> GetPowerBIEncryptionKeysAsync(this IAdmin operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPowerBIEncryptionKeysWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of capacities for the organization. /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as Office 365 /// Global Administrator or Power BI Service Administrator) to call this API. /// <br/><br/>**Required scope**: Tenant.Read.All or /// Tenant.ReadWrite.All<br/>To set the permissions scope, see [Register /// an app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Expands related entities inline /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Capacities> GetCapacitiesAsAdminAsync(this IAdmin operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetCapacitiesAsAdminWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of audit activity events for a tenant. /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as Office 365 /// Global Administrator or Power BI Service Administrator) to call this API. /// <br/>This API allows 200 requests per hour at maximum. /// <br/><br/>**Required scope**: Tenant.Read.All or /// Tenant.ReadWrite.All. <br/>To call this API, provide either a /// continuation token or both a start and end date time. StartDateTime and /// EndDateTime must be in the same UTC day. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='startDateTime'> /// Start date and time of the window for audit event results. Must be in ISO /// 8601 compliant UTC format. /// </param> /// <param name='endDateTime'> /// End date and time of the window for audit event results. Must be in ISO /// 8601 compliant UTC format. /// </param> /// <param name='continuationToken'> /// Token required to get the next chunk of the result set /// </param> /// <param name='filter'> /// Filters the results based on a boolean condition, using 'Activity', /// 'UserId', or both properties. Supports only 'eq' and 'and' operators. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ActivityEventResponse> GetActivityEventsAsync(this IAdmin operations, string startDateTime = default(string), string endDateTime = default(string), string continuationToken = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetActivityEventsWithHttpMessagesAsync(startDateTime, endDateTime, continuationToken, filter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns the specified refreshable for the specified capacity the user has /// access to /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as Office 365 /// Global Administrator or Power BI Service Administrator) to call this API or /// authenticate via service principal. <br/><br/>**Required /// scope**: Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated /// permissions are supported. <br/>To set the permissions scope, see /// [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='capacityId'> /// The capacity id /// </param> /// <param name='refreshableId'> /// The refreshable id /// </param> /// <param name='expand'> /// Expands related entities inline, receives a comma-separated list of data /// types. Supported: capacities and groups /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Refreshables> GetRefreshableForCapacityAsync(this IAdmin operations, System.Guid capacityId, string refreshableId, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetRefreshableForCapacityWithHttpMessagesAsync(capacityId, refreshableId, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public AdminController(IAdmin repository) { _adminRepository = repository; BKICAutomapper automap = new BKICAutomapper(); _mapper = automap.GetAdminAutoMapper(); }
private void DoSign() { string par_username = Server.UrlDecode(Request.QueryString["username"]); string par_rndcode = Server.UrlDecode(Request.QueryString["rnd"]); string par_sign = Server.UrlDecode(Request.QueryString["sign"]); if (string.IsNullOrEmpty(par_username) || string.IsNullOrEmpty(par_username) || string.IsNullOrEmpty(par_sign)) { //如果不包含其中的数据,那么直接跳转到集成登录页面 Response.Redirect(AdminAppSetting.TcAdminLoginPage()); } string md5sign = (par_username + par_rndcode + AdminAppSetting.JumpLoginKey()).MD5(); if (md5sign == par_sign) //验证通过 { IAdmin gatewayobj = GetInterface.GetIAdmin(); CYJH_OrderSystem.Admin.Base.Model.MR_Admin model; bool islogin = gatewayobj.LoginByGateWay(par_username, Request.UserHostAddress, out model); if (model == null || model.AID <= 0) { Response.Write("<br/><a href='" + AdminPageStatic.GetLoginURL() + "'>验证失败!请确定您有访问该系统的权限!</a>"); return; } else { AdminPageStatic.SaveUserFormsCookie(model); Response.Write("<script type='text/javascript'>window.setTimeout(function(){location.href='" + AdminPageStatic.GetDefaultURL() + "'}, 2000)</script>"); Response.Write("<a href='" + AdminPageStatic.GetDefaultURL() + "'>您已登录成功,如果2秒内没有自动进入系统,请点击这里</a>"); return; } } Response.Write(par_username + "<br/>" + par_sign + "<br/>" + par_rndcode + "<br/>" + md5sign); }
// Overriden in inherited class public virtual void OnRemoved() // called before removing an item from the game { IsValid = false; // TODO: warn IncarnatedBy about removing IncarnatedBy?.StopIncarnating(); IncarnatedBy = null; }
public static bool UpdateForumCounts() { IAdmin dal = Factory <IAdmin> .Create("AdminFunctions"); dal.UpdateForumCounts(); return(true); }
// GET: api/ReporteLogin public IEnumerable <object> Get() { IAdmin builder = WebApiConfig.BuilderService(null); List <object> res = builder.getReporteLogin(); return(res); }
public bool Add(IAdmin admin) { if (admin == null) throw new ArgumentNullException("admin"); if (AdminCount >= MaxAdmins) { Log.Default.WriteLine(LogLevels.Warning, "Too many admins"); return false; } if (_admins.ContainsValue(admin)) { Log.Default.WriteLine(LogLevels.Warning, "{0} already connected", admin.Name); return false; } if (_admins.ContainsKey(admin.Callback)) { Log.Default.WriteLine(LogLevels.Warning, "{0} already connected", admin.Name); return false; } if (_admins.Any(x => x.Value.Name == admin.Name)) { Log.Default.WriteLine(LogLevels.Warning, "{0} already connected", admin.Name); return false; } // _admins.Add(admin.Callback, admin); // return true; }
public void Email(string to, string subject, string body) { _admin = (IAdmin)context.HttpContext.RequestServices.GetService(typeof(IAdmin)); Setting setting = _admin.GetSetting(); using (var message = new MailMessage()) { message.To.Add(new MailAddress(to, "فروشگاه آنلاین")); message.From = new MailAddress(setting.MailAddress, "فروشگاه آنلاین"); message.Subject = subject; message.Body = body; message.IsBodyHtml = true; using (var client = new SmtpClient("smtp.gmail.com")) { client.UseDefaultCredentials = false; client.Port = 587; client.Credentials = new NetworkCredential(setting.MailAddress, setting.MailPassword); client.EnableSsl = true; client.Send(message); } } }
/// <summary> /// Adds an encryption key for Power BI workspaces assigned to a capacity. /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as Office 365 /// Global Administrator or Power BI Service Administrator) to call this API. /// <br/>This API allows 600 requests per hour at maximum. /// <br/><br/>**Required scope**: Tenant.Read.All or /// Tenant.ReadWrite.All<br/>To set the permissions scope, see [Register /// an app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='tenantKeyCreationRequest'> /// Tenant key information /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TenantKey> AddPowerBIEncryptionKeyAsync(this IAdmin operations, TenantKeyCreationRequest tenantKeyCreationRequest, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddPowerBIEncryptionKeyWithHttpMessagesAsync(tenantKeyCreationRequest, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public EditUserHelper(Gtk.Window win, ref DoubleListView dlv, User u) { this.doubleListView = dlv; _adminObj = (IAdmin) RemotingHelper.GetObject(typeof(IAdmin)); _user = u; base.Init(win); }
public MotorCalculator() { _adminRepository = new Admin(); _motorInsuranceRepository = new MotorInsurance(); _insurancePortalRepository = new InsurancePortal(); _oracleMotorInsurance = new OracleDBIntegration.Implementation.MotorInsurance(); _mail = new Mail(); }
public BookingModel(IAdmin admin, IEmail email, IUploadService upload, IConfiguration config) { _admin = admin; _email = email; _upload = upload; _config = config; CaptchaKey = _config["CaptchaKey"]; }
public AdminController(ApplicationDbContext context, IPost postService, IApplicationUser userService, IAdmin adminService, UserManager <ApplicationUser> userManager) { _userService = userService; _postService = postService; _adminService = adminService; _context = context; _userManager = userManager; }
public HomeController(ILogger <HomeController> logger, IUser user, IClient client, ITicket ticket, IAdmin admin) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _user = user ?? throw new ArgumentNullException(nameof(user)); _client = client ?? throw new ArgumentException(nameof(client)); _ticket = ticket ?? throw new ArgumentNullException(nameof(ticket)); _admin = admin ?? throw new ArgumentNullException(nameof(admin)); }
public AdminController() { noticiasAdmin = new MNoticiaBL(); contactoAct = new MContactoBL(); adminActi = new MAdminBL(); estudianteActividad = new MEstudianteBL(); usuariosActividad = new MUsuarioBL(); }
public AdminController( IAdmin userService, IMapper mapper) { _userService = userService; _mapper = mapper; }
public HomeCalculator() { _adminRepository = new Admin(); _homeInsuranceRepository = new HomeInsurance(); _insurancePortalRepository = new InsurancePortal(); _oracleHomeInsurance = new OracleDBIntegration.Implementation.HomeInsurance(); _mail = new Mail(); }
public void GetDevotionalMessage(IAdmin admin) { var devotions = _Schemas.Devotions; devotions.Case.OrderBy(devotions.Column(x => x.insert_time), OrderBy.DESC); devotions.Case.LimitBy(1); admin.DevotionalMessage = devotions.Select.Entity; }
public AdminController( IAdmin adminProcessor, IPickList pickListProcessor, ITraceMessage traceMessageProcessor) { _adminProcessor = adminProcessor; _pickListProcessor = pickListProcessor; _traceMessageProcessor = traceMessageProcessor; }
public VolunteerController(IDisaster disasterSvc, ICluster clusterSvc, IAdmin adminSvc, IMessageService messageSvc, IVolunteerService volunteerSvc, IWebSecurityWrapper webSecurity) { _disasterSvc = disasterSvc; _clusterSvc = clusterSvc; _adminSvc = adminSvc; _messageSvc = messageSvc; _volunteerSvc = volunteerSvc; _webSecurity = webSecurity; }
public void Initialize(IApplicationBuilder app, IRouteBuilder builder) { _app = app; _mvcRouteBuilder = builder; _internalRouteBuilder = new RouteBuilder(app); Admin = new Admin(this); }
public AdminController(IAdmin authProvider, IPosts blogRepository = null, IFeedback feedbackRepository = null, IUsligi services = null, IPhoto photo = null, ICategories cat = null) { _blogRepository = blogRepository; _authProvider = authProvider; _feedbackRepository = feedbackRepository; _servicesRepository = services; _photoRepository = photo; _catRepository = cat; }
public AdminManager() { _iAdmin = new AdminRepository(); _iBrand = new BrandRepository(); _iBranndingIssuesSolved = new BarandingIssueSolvedRepository(); _iBrandingTeam = new BrandingTeamRepository(); _iBrandIssue = new BrandIssueRepository(); _iBrandOutlet = new BrandOutletRepository(); }
public MainHelper(Gtk.Window win, ref FilteredListView e, ref FilteredListView u, ref FilteredListView g) { ftreeviewEnterprises = e; ftreeviewUsers = u; ftreeviewGroups = g; _adminObj = (IAdmin) RemotingHelper.GetObject(typeof(IAdmin)); base.Init(win); }
public OrganizationController(IVolunteerService volunteerService, IOrganizationService organizationService, IWebSecurityWrapper webSecurityWrapper, IMessageService messageService, IAdmin adminService, IDisaster disasterService) : base() { this.VolunteerService = volunteerService; this.OrganizationService = organizationService; this.WebSecurityWrapper = webSecurityWrapper; this.MessageService = messageService; this.AdminService = adminService; this.DisasterService = disasterService; }
public void SetUp() { _logIn = Substitute.For<ILogIn>(); _autocomplete = Substitute.For<IAutocomplete>(); _storemanager = Substitute.For<IStoremanager>(); _admin = Substitute.For<IAdmin>(); _databaseFunctions = Substitute.For<IDatabaseFunctions>(); _databaseFunctions.ConnectToDb().Returns(true); _uut = new LogInViewModel(_autocomplete, _logIn, _databaseFunctions, _storemanager, _admin); }
/// <summary> /// AdminViewModel constructor takes a UnitOfWork to give to each of its user controls view models and add them to a /// list. /// </summary> public AdminViewModel(IAdmin admin, IAutocomplete autocomplete) { // Add available pages PageViewModels.Add(new AdminNewStoreModel(admin)); PageViewModels.Add(new AdminDeleteProductModel()); PageViewModels.Add(new AdminDeleteStoreModel(admin, autocomplete, new CreateMsgBox())); // set startup page MainWindowTekst = "Pristjek220 - Administration - Tilføj Forretning"; _currentPageViewModel = _pageViewModels[0]; }
public HomeController( IDisaster disasterSvc, IVolunteerService volunteerSvc, IWebSecurityWrapper webSecurity, IClusterCoordinatorService clusterCoordinatorService, IVolunteerTypeService volunteerTypeService, IDisasterClusterService disasterClusterService, IAdmin adminService ) { _disasterSvc = disasterSvc; _volunteerSvc = volunteerSvc; _webSecurity = webSecurity; _clusterCoordinatorService = clusterCoordinatorService; _volunteerTypes = volunteerTypeService; _disasterClusterSvc = disasterClusterService; _adminService = adminService; }
public MessageService(IAdmin adminSvc, IMessageCoordinator msgCoordinatorSvc) { _msgCoordinatorSvc = msgCoordinatorSvc; _adminSvc = adminSvc; }
public void SetUp() { _admin = Substitute.For<IAdmin>(); _autocomplete = Substitute.For<IAutocomplete>(); _uut = new AdminViewModel(_admin, _autocomplete); }
public DissController(IDiss<diss> dissRepository, IAdmin<admin> adminRepository) { _dissRepository = dissRepository; _adminRepository = adminRepository; }
public void SetUp() { _admin = Substitute.For<IAdmin>(); _uut = new AdminNewStoreModel(_admin); _secureString1 = new SecureString(); _secureString1.AppendChar('a'); _secureString1.AppendChar('b'); _secureString1.AppendChar('c'); _secureString2 = new SecureString(); _secureString2.AppendChar('c'); _secureString2.AppendChar('b'); _secureString2.AppendChar('a'); _secureString3 = new SecureString(); }
public MessageService(IAdmin adminSvc) { _adminSvc = adminSvc; }
/// <summary> /// Admin constructor takes a admin and a autocomplete to create an AdminViewModel /// </summary> /// <param name="admin"></param> /// <param name="autocomplete"></param> public Admin(IAdmin admin, IAutocomplete autocomplete) { InitializeComponent(); DataContext = new AdminViewModel(admin, autocomplete); }
// // GET: /Admin/Orders/ public OrdersController(IAdmin adminsvc, ICommon commonsvc) : base(adminsvc, commonsvc) { }
public AskLibController(IAskLib<asklib> repository, IAdmin<admin> adminRepository) { _adminRepository = adminRepository; _askRepository = repository; }
public CategoriesController(IAdmin adminsvc,ICommon commonsvc) : base(adminsvc,commonsvc) { }
public void AddAdmin(IAdmin added) { // NOP }
public void RemoveAdmin(IAdmin removed) { // NOP }
/// <summary> /// AdminNewStoreModel constructor takes a UnitOfWork to create an Admin /// </summary> public AdminNewStoreModel(IAdmin admin) { _admin = admin; }
public bool Remove(IAdmin admin) { if (admin == null) throw new ArgumentNullException("admin"); bool removed = _admins.Remove(admin.Callback); return removed; }
public HomeController(IHome<home> repository, IUser<user> userRepository, IAdmin<admin> adminRepository) { _userRepository = userRepository; _homeRepository = repository; _adminRepository = adminRepository; }
// GET: /Admin/Settings/ public SettingsController(IAdmin adminsvc,ICommon commonsvc) : base(adminsvc,commonsvc) { }
public HomeController() { _homeRepository = new HomeRepository(); _userRepository = new UserRepository(); _adminRepository = new AdminRepository(); }
public VolunteerController(IDisaster disasterSvc, IAdmin adminSvc) { _disasterSvc = disasterSvc; _adminSvc = adminSvc; }
public AskLibController() { _askRepository = new AskLibRepository(); _adminRepository = new AdminRepository(); }
public DissController() { _dissRepository = new DissRepository(); _adminRepository = new AdminRepository(); }
public void SetUp() { _admin = Substitute.For<IAdmin>(); _autocomplete = Substitute.For<IAutocomplete>(); _msgBox = Substitute.For<ICreateMsgBox>(); _uut = new AdminDeleteStoreModel(_admin, _autocomplete, _msgBox); _store = new Store() {StoreId = 12, StoreName = "Lidl"}; }
public AdminHomeController(IAdmin adminsvc,ICommon commonsvc) : base(adminsvc,commonsvc) { }