コード例 #1
0
 public QueryController(IAdaptationService adaptationService, IGraduationService graduationService,
                        IIdentityService ıdentityService, IAwardService awardService, IBirthCertificateService birthCertificateService,
                        ICourseService courseService, ICriminalService criminalService, IDesignationService designationService,
                        IPermissionService permissionService, IPromotionService promotionService, ITemporaryDutyService temporaryDutyService,
                        IForeignLanguageService foreignLanguageService, IWorkingPriceService workingPriceService, ITradeUnionInfoService tradeUnionInfoService,
                        IMilitaryService militaryService, IWorkplaceService workplaceService, IPriceTypeService priceTypeService, ITisJobCodeService tisJobCodeService,
                        IAdminStatusService adminStatusService, IDailyWorkingTimeService dailyWorkingTimeService, IPrivateStatusService privateStatusService, IMaritalStatusService maritalStatusService, IGenderService genderService, IWorkingStatusService workingStatusService, IWorkplaceHeadquartersService workplaceHeadquartersService)
 {
     _adaptationService            = adaptationService;
     _graduationService            = graduationService;
     _ıdentityService              = ıdentityService;
     _awardService                 = awardService;
     _birthCertificateService      = birthCertificateService;
     _courseService                = courseService;
     _criminalService              = criminalService;
     _designationService           = designationService;
     _permissionService            = permissionService;
     _promotionService             = promotionService;
     _temporaryDutyService         = temporaryDutyService;
     _foreignLanguageService       = foreignLanguageService;
     _workingPriceService          = workingPriceService;
     _tradeUnionInfoService        = tradeUnionInfoService;
     _militaryService              = militaryService;
     _workplaceService             = workplaceService;
     _priceTypeService             = priceTypeService;
     _tisJobCodeService            = tisJobCodeService;
     _adminStatusService           = adminStatusService;
     _dailyWorkingTimeService      = dailyWorkingTimeService;
     _privateStatusService         = privateStatusService;
     _maritalStatusService         = maritalStatusService;
     _genderService                = genderService;
     _workingStatusService         = workingStatusService;
     _workplaceHeadquartersService = workplaceHeadquartersService;
 }
コード例 #2
0
 public HomeController(IPlayerService playerService, IAboutUsService aboutUsService, IAskedQuestionService askedQuestionService, IAwardService awardService)
 {
     this._playerService        = playerService;
     this._aboutUsService       = aboutUsService;
     this._askedQuestionService = askedQuestionService;
     this._awardService         = awardService;
 }
 public AwardController(IAwardService services, ISystemAuditService systemAuditService, IMapper mapper, IHttpContextAccessor accessor)
 {
     _services           = services;
     _systemAuditService = systemAuditService;
     _mapper             = mapper;
     _accessor           = accessor;
 }
コード例 #4
0
 public Directories(IAccountService accountService,
                    ISubdivisionsService subdivisionsService,
                    IPositionService positionService,
                    IDormitoryService dormitoryService,
                    IDepartmentalService departmentalService,
                    IQualificationService scientificService,
                    ISocialActivityService socialActivity,
                    IPrivilegesService privilegesService,
                    IHobbyService hobbyService,
                    ITravelService travelService,
                    IWellnessService wellnessService,
                    ITourService tourService,
                    ICulturalService culturalService,
                    IActivitiesService activitiesService,
                    IAwardService awardService,
                    IMaterialAidService materialAidService)
 {
     _accountService      = accountService;
     _subdivisionsService = subdivisionsService;
     _positionService     = positionService;
     _dormitoryService    = dormitoryService;
     _departmentalService = departmentalService;
     _scientificService   = scientificService;
     _socialActivity      = socialActivity;
     _privilegesService   = privilegesService;
     _hobbyService        = hobbyService;
     _travelService       = travelService;
     _wellnessService     = wellnessService;
     _tourService         = tourService;
     _culturalService     = culturalService;
     _activitiesService   = activitiesService;
     _awardService        = awardService;
     _materialAidService  = materialAidService;
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: BRichardson2993/cs50
        static void Main(string[] args)
        {
            Person[] people = new Person[]
            {
                new Person {
                    Mark = 46, Name = "Jim"
                },
                new Person {
                    Mark = 73, Name = "Mike"
                },
                new Person {
                    Mark = 92, Name = "Stefan"
                },
                new Person {
                    Mark = 24, Name = "Arthur"
                }
            };
            WriteLine("People:");
            OutputPeople(people);
            IAwardService client = ChannelFactory <IAwardService> .CreateChannel(
                new WSHttpBinding(),
                new EndpointAddress("http://localhost:59558/AwardService.svc"));

            client.SetPassMark(70);
            Person[] awardedPeople = client.GetAwardedPeople(people);
            WriteLine();
            WriteLine("Awarded people:");
            OutputPeople(awardedPeople);
            ReadKey();
        }
コード例 #6
0
 public AwardController(
     IAwardService awardService,
     ILoggingService loggingService)
 {
     _awardService   = awardService;
     _loggingService = loggingService;
 }
コード例 #7
0
 public HomeController(IAwardService awardService, ICommonDbService commonDbService, Silicus.Encourage.DAL.Interfaces.IDataContextFactory dataContextFactory, INominationService nominationService)
 {
     _awardService             = awardService;
     _commonDbService          = commonDbService;
     _dataContextFactory       = dataContextFactory;
     _encourageDatabaseContext = _dataContextFactory.CreateEncourageDbContext();
     _nominationService        = nominationService;
 }
コード例 #8
0
 public EmailController(IEmailTemplateService emailTemplateService, ILogger logger, INominationService nominationService, IAwardService awardService, ICustomDateService customDateService)
 {
     _emailTemplateService = emailTemplateService;
     _logger            = logger;
     _nominationService = nominationService;
     _awardService      = awardService;
     _customDateService = customDateService;
 }
コード例 #9
0
 public MultiAddedController(IAdaptationService adaptationService, IIdentityService ıdentityService,
                             IAwardService awardService, IBloodGroupService bloodGroupService, IGenderService genderService,
                             IMaritalStatusService maritalStatusService, IDisabilityStatusService disabilityStatusService)
 {
     _adaptationService       = adaptationService;
     _ıdentityService         = ıdentityService;
     _awardService            = awardService;
     _bloodGroupService       = bloodGroupService;
     _genderService           = genderService;
     _maritalStatusService    = maritalStatusService;
     _disabilityStatusService = disabilityStatusService;
 }
コード例 #10
0
 public GoalsController(IGoalSerive goalService,
                        IAwardService awardService,
                        IMemberJobService memberJobService,
                        IFamilyMemberSerive memberService,
                        IMemberGoalService memberGoalService)
 {
     _goalService       = goalService;
     _awardService      = awardService;
     _memberJobService  = memberJobService;
     _memberService     = memberService;
     _memberGoalService = memberGoalService;
 }
コード例 #11
0
 public NominationController(INominationService nominationService, Encourage.DAL.Interfaces.IDataContextFactory dataContextFactory,
                             ICommonDbService commonDbService, IAwardService awardService, IReviewService reviewService, ILogger logger, ICustomDateService customDateService)
 {
     _nominationService        = nominationService;
     _commonDbContext          = commonDbService.GetCommonDataBaseContext();
     _encourageDatabaseContext = dataContextFactory.CreateEncourageDbContext();
     _awardService             = awardService;
     _reviewService            = reviewService;
     _textInfo          = new CultureInfo("en-US", false).TextInfo;
     _logger            = logger;
     _customDateService = customDateService;
 }
コード例 #12
0
 public ReviewController(IResultService resultService, INominationService nominationService, ICommonDbService commonDbService, Encourage.DAL.Interfaces.IDataContextFactory dataContextFactory, IAwardService awardService,
                         IReviewService reviewService, IEmailNotificationOfWinner EmailNotificationOfWinner, ILogger logger, ICustomDateService customDateService)
 {
     _commonDbContext           = commonDbService.GetCommonDataBaseContext();
     _encourageDatabaseContext  = dataContextFactory.CreateEncourageDbContext();
     _awardService              = awardService;
     _reviewService             = reviewService;
     _nominationService         = nominationService;
     _resultService             = resultService;
     _emailNotificationOfWinner = EmailNotificationOfWinner;
     _logger            = logger;
     _customDateService = customDateService;
 }
コード例 #13
0
 public AwardController(
     IAwardService awardService,
     ILogger logger,
     IImportManager importManager,
     IWorkContext workContext,
     IResourceManager resourceManager,
     IAppSettings appSettings)
     : base(logger, resourceManager)
 {
     _awardService  = awardService;
     _importManager = importManager;
     _workContext   = workContext;
     _appSettings   = appSettings;
 }
コード例 #14
0
ファイル: Program.cs プロジェクト: harman666666/DOT-NET-Notes
        //Difference in this example is that no metadata is required by  the client, as the client has access to the
        //contract assembly.Instead of generating a proxy class from metadata, the client obtains the refence to the
        //service contract interface through an alternative method. Another point to note about this example is the
        //use of a session to maintain state in the servie, which requires the WSHttpBinding binding istead of the
        //BasicHttpBinding binding


        static void Main(string[] args)
        {
            Person[] people = new Person[]
            {
                new Person {
                    Mark = 46, Name = "Jim"
                },
                new Person {
                    Mark = 73, Name = "Mike"
                },
                new Person {
                    Mark = 92, Name = "Stefan"
                },
                new Person {
                    Mark = 24, Name = "Arthur"
                }
            };
            WriteLine("People:");
            OutputPeople(people);

//The client application has no app.config file to configue the communications with the service and no proxy class defined from metadata
//to communicate with the service. Instead a proxy class is created through the ChannelFactory<T>.CreateChannel() method. This method
//creates a proxy class that implements the IAwardService client, although behind the scenes, the generated class communicates with the
//service just like the metadata-generated proxy shown earlier. Note if you create a porxy class with ChannelFactory<T>.CreateChannel(),
//the communication channel will, by default, time out after a minute, which can lead to communication errors. There are ways to keep
//connections alive, but they are beyond the scope of this chapter. Creating proxy classes this way is extremely useful technique that you
//can use to quickly generate a client application on the fly.

            IAwardService client = ChannelFactory <IAwardService> .CreateChannel(
                new WSHttpBinding(),
                new EndpointAddress("http://localhost:51735/AwardService.svc"));

            client.SetPassMark(70);
            Person[] awardedPeople = client.GetAwardedPeople(people);
            WriteLine();
            WriteLine("Awarded people:");
            OutputPeople(awardedPeople);
            ReadKey();
        }
コード例 #15
0
 public AwardManageController(IAwardService objService)
     : base(objService)
 {
     _objService = objService;
 }
コード例 #16
0
ファイル: HomeController.cs プロジェクト: a-yasn/ArtistAwards
 public HomeController(IAwardService awardService)
 {
     this.awardService = awardService;
 }
コード例 #17
0
 public AwardController(IIdentityService identityService, IAwardService awardService)
 {
     _identityService = identityService;
     _awardService    = awardService;
 }
コード例 #18
0
 public ReviewNominationApiController(IReviewService reviewService, ILogger logger, INominationService nominationService, IAwardService awardService)
 {
     _reviewService = reviewService;
     _logger        = logger;
     _awardService  = awardService;
 }
コード例 #19
0
 public AwardController(IAwardService services, IOops oops, IMapper mapper)
 {
     _services = services;
     _oops     = oops;
     _mapper   = mapper;
 }
コード例 #20
0
 public HomeController(IAwardService awardService, IGrantService grantService)
 {
     this.awardService = awardService;
     this.grantService = grantService;
 }
コード例 #21
0
 public EmailNotificationOfWinnerService(IAwardService awardService, ILogger logger)
 {
     _awardService = awardService;
     _logger       = logger;
 }
コード例 #22
0
 public AwardHostedService(ILogger <AwardHostedService> logger, IAwardService awardService)
 {
     this.logger       = logger;
     this.awardService = awardService;
 }
コード例 #23
0
 public NominationApiController(INominationService nominationService, ILogger logger, IAwardService awardService)
 {
     _nominationService = nominationService;
     _logger            = logger;
     _awardService      = awardService;
 }
コード例 #24
0
 public AwardsController(IAwardService service)
 {
     _awardService = service;
 }
コード例 #25
0
 public AwardController(IBaseService <Award> _award, IAwardService awardService) : base(_award)
 {
     _awardService = awardService;
 }
コード例 #26
0
 public AwardController(ILogger <TitleController> logger, IAwardService awardService)
 {
     _logger       = logger;
     _awardService = awardService;
 }
コード例 #27
0
 public AwardsController(IAwardService awardService) // DI
 {
     _awardService = awardService;
 }
コード例 #28
0
 public AwardsController(IAwardService awardService, IGameService gameService)
 {
     _awardService = awardService;
     _gameService  = gameService;
 }
コード例 #29
0
 public BitcoinShowFacade(IQuestionService questionService, IOptionService optionService, IAwardService awardService)
 {
     this._questionService = questionService;
     this._optionService   = optionService;
     _awardService         = awardService;
 }
コード例 #30
0
 public AwardsController(IAwardService awardService)
 {
     _awardService = awardService ?? throw new ArgumentNullException(nameof(awardService));
 }