public RigsViewModel(IRigService rigService, IPageService pageService) : base(pageService) { m_rigService = rigService; CreateNewRigCommand = new DelegateCommand(CreateNewRig); ShowRigDetailsCommand = new DelegateCommand <Rig>(ShowRigDetails); }
public CreateNewRigViewModel(IRigService rigService, IPageService pageService) : base(pageService) { m_rigService = rigService; CreateRigCommand = new DelegateCommand(CreateRig); CancelCommand = new DelegateCommand(Cancel); }
public EditRigViewModel(IRigService rigService, IPageService pageService) : base(pageService) { m_rigService = rigService; ConfirmCommand = new DelegateCommand(Confirm); CancelCommand = new DelegateCommand(Cancel); }
public RigDetailsViewModel(IRigService rigService, IEquipmentService equipmentService, IPageService pageService) : base(pageService) { m_rigService = rigService; m_equipmentService = equipmentService; EditRigCommand = new DelegateCommand(EditRig); CreateNewSystemCommand = new DelegateCommand(CreateSystem); ShowSystemDetailsCommand = new DelegateCommand <Equipment>(ShowSystemDetails); }
public Routes( ICredentialsService credentialsService, IWellService wellService, IWellboreService wellboreService, ILogObjectService logObjectService, IMessageObjectService messageObjectService, IRigService rigService, ITrajectoryService trajectoryService, IJobService jobService, IRiskService riskService, IMudLogService mudLogService, IDocumentRepository <Server, Guid> witsmlServerRepository) { this.credentialsService = credentialsService; this.wellService = wellService; this.wellboreService = wellboreService; this.logObjectService = logObjectService; this.messageObjectService = messageObjectService; this.rigService = rigService; this.trajectoryService = trajectoryService; this.jobService = jobService; this.riskService = riskService; this.mudLogService = mudLogService; this.witsmlServerRepository = witsmlServerRepository; Get("/api/witsml-servers", GetWitsmlServers); Post("/api/witsml-servers", CreateWitsmlServer); Patch("/api/witsml-servers/{witsmlServerId}", UpdateWitsmlServer); Delete("/api/witsml-servers/{witsmlServerId}", DeleteWitsmlServer); Get("/api/wells", GetAllWells); Get("/api/wells/{wellUid}", GetWell); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}", GetWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/messages", GetMessagesForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/messages/{messageUid}", GetMessage); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}", GetLog); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs", GetLogsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logcurveinfo", GetLogCurveInfo); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logdata", GetLogData); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/rigs", GetRigsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/rigs/{rigUid}", GetRig); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/trajectories", GetTrajectories); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/trajectories/{trajectoryUid}/trajectorystations", GetTrajectoryStations); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/risks", GetRisksForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/mudlogs", GetMudLogsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/mudlogs/{mudlogUid}", GetMudLog); //Get Requests exceeding the URL limit Post("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logdata", GetLargeLogData); Post("/api/jobs/{jobType}", CreateJob); Post("/api/credentials/authorize", Authorize); }
public RigController(IRigService rigService, IVHostControllerFactory vHostControllerFactory) { this.rigService = rigService; this.rig = rigService.GetRig(); this.vHostControllerFactory = vHostControllerFactory; }