Exemplo n.º 1
0
        public SoftwareModelInterfaceService(
            FSSecurityContext securityContext,
            ReferenceProvider referencesProvider,
            ProtocolService protocolService,
            ProjectService projectService,
            UnitOfWorkLinq <SoftwareModelInterface, Guid> db,
            IEntityIdProvider <SoftwareModelInterface, Guid> idProvider,
            IMessagePipe messagePipe = null,
            IProvideSpecifications <SoftwareModelInterface> specProvider = null,
            EntityHandler <SoftwareModelInterface, Guid> entityHandler   = null) : base(securityContext, referencesProvider, db, idProvider, messagePipe, specProvider, entityHandler)
        {
            Guard.ArgumentNotNull(protocolService, nameof(protocolService));

            _protocolService = protocolService;
            _projectService  = projectService;
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Creates a new instance given a set of primitive services.
        /// </summary>
        public NetworkService(
            FSSecurityContext securityContext,
            ReferenceProvider referenceProvider,
            BusinessUnitProvider businessUnitProvider,
            StakeholderService stakeholdersService,
            ProtocolService protocolService,
            DeviceModelService deviceModelService,
            DeviceService deviceService,
            DeviceConnectionService deviceConnectionService,
            ApplicationAccessService appAccessService,
            ProjectService projectService,
            FsUnitOfWork db,
            IEntityIdProvider <Network, Guid> idProvider,
            IMessagePipe messagePipe = null,
            IProvideSpecifications <Network> specProvider = null,
            EntityHandler <Network, Guid> entityHandler   = null) : base(securityContext, referenceProvider, db, idProvider, messagePipe, specProvider, entityHandler)
        {
            Guard.ArgumentNotNull(stakeholdersService, nameof(stakeholdersService));
            Guard.ArgumentNotNull(protocolService, nameof(protocolService));
            Guard.ArgumentNotNull(deviceService, nameof(deviceService));
            Guard.ArgumentNotNull(deviceConnectionService, nameof(deviceConnectionService));
            Guard.ArgumentNotNull(deviceModelService, nameof(deviceModelService));
            Guard.ArgumentNotNull(projectService, nameof(projectService));
            Guard.ArgumentNotNull(businessUnitProvider, nameof(businessUnitProvider));
            Guard.ArgumentNotNull(appAccessService, nameof(appAccessService));

            // compose device service
            // todo: dependency inject

            //setup and configure service
            _deviceService           = deviceService;
            _appAccessService        = appAccessService;
            _businessUnitService     = businessUnitProvider;
            _projectService          = projectService;
            _deviceModelService      = deviceModelService;
            _protocolService         = protocolService;
            _deviceConnectionService = deviceConnectionService;
            _stakeholderService      = stakeholdersService;

            _db = db;
        }
Exemplo n.º 3
0
        public DeviceConnectionService(
            FSSecurityContext securityContext,
            ReferenceProvider referenceService,
            StakeholderService stakeholderService,
            UserGroupService userGroupService,
            ProjectService projectService,
            UnitOfWorkLinq <DeviceConnection, Guid> db,
            DeviceService deviceService,
            ProtocolService protocolService,
            IEntityIdProvider <DeviceConnection, Guid> keyBinder,
            IMessagePipe messagePipe = null,
            IProvideSpecifications <DeviceConnection> specProvider = null,
            EntityHandler <DeviceConnection, Guid> entityHandler   = null)
            : base(securityContext, referenceService, db, keyBinder, messagePipe, specProvider, entityHandler)
        {
            Guard.ArgumentNotNull(stakeholderService, nameof(stakeholderService));
            Guard.ArgumentNotNull(userGroupService, nameof(userGroupService));

            _deviceService      = deviceService;
            _protocolService    = protocolService;
            _projectService     = projectService;
            _userGroupService   = userGroupService;
            _stakeholderService = stakeholderService;
        }