• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IEventService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IEventService的典型用法代码示例。如果您正苦于以下问题:C# IEventService类的具体用法?C# IEventService怎么用?C# IEventService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IEventService类属于命名空间,在下文中一共展示了IEventService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CreateServiceHost

        private void CreateServiceHost(IEventService instance)
        {
            var guid = Guid.NewGuid();
            host = new ServiceHost(instance,
                GetUri(guid));
            host.AddServiceEndpoint(
                typeof(IEventService),
                GetBinding(),
                "EventService");
            #if !NET35
            var discoveryBehavior = new ServiceDiscoveryBehavior();
            host.Description.Behaviors.Add(discoveryBehavior);
            host.AddServiceEndpoint(new UdpDiscoveryEndpoint());
            discoveryBehavior.AnnouncementEndpoints.Add(new UdpAnnouncementEndpoint());
            #else
            discoverer = new Discovery.ServiceDiscoverer();
            StartDiscoverer(discoverer, guid);
            #endif

            host.Description.Behaviors.Add(new ServiceThrottlingBehavior
            {
                MaxConcurrentSessions = 1000
            });

            host.Description.Endpoints[0].Contract.Operations[0].Behaviors.Add(new EncryptionBehavior { EncryptionKey = encryptionKey });

            host.Opened += (s, e) => IsStarted = true;
            host.Closed += (s, e) => IsStarted = false;
        }
开发者ID:Turntwo,项目名称:nvents,代码行数:29,代码来源:WcfEventServiceHostBase.cs


示例2: Start

 public virtual void Start(IEventService instance)
 {
     if (host != null)
         throw new NotSupportedException("Service has already started.");
     CreateServiceHost(instance);
     host.Open();
 }
开发者ID:Turntwo,项目名称:nvents,代码行数:7,代码来源:WcfEventServiceHostBase.cs


示例3: EventController

 public EventController(IOrchardServices services, 
     IEventService eventService)
 {
     T = NullLocalizer.Instance;
     _eventService = eventService;
     _services = services;
 }
开发者ID:NFLPA,项目名称:NFLPA.CalendarEvents,代码行数:7,代码来源:EventController.cs


示例4: CommunityController

 public CommunityController(IMessageService messageService,ISecurityService securityService, IEventService eventService)
     : base(securityService)
 {
     _messageService = messageService;
     _securityService = securityService;
     _eventService = eventService;
 }
开发者ID:JudasHerb,项目名称:MyCommunity,代码行数:7,代码来源:CommunityController.cs


示例5: BrokerInfoController

 /// <summary>
 /// 经纪人管理初始化
 /// </summary>
 /// <param name="clientInfoService">clientInfoService</param>
 /// <param name="workContext">workContext</param>
 /// <param name="brokerService">brokerService</param>
 /// <param name="partnerlistService">partnerlistService</param>
 /// <param name="recommendagentService">recommendagentService</param>
 /// <param name="roleService">roleService</param>
 /// <param name="MessageService">MessageService</param>
 /// <param name="userService">userService</param>
 public BrokerInfoController(IClientInfoService clientInfoService,
     IWorkContext workContext,
     IBrokerService brokerService,
     IPartnerListService partnerlistService,
     IRecommendAgentService recommendagentService,
     IRoleService roleService,
     IMessageDetailService MessageService,
     IUserService userService,
     IBrokeAccountService brokerAccountService,
     IEventOrderService eventOrderService,
     IInviteCodeService inviteCodeService,
     ILevelService levelService,
     IAgentBillService agentBillService,
     IEventService eventService
     )
 {
     _clientInfoService = clientInfoService;
     _workContext = workContext;
     _brokerService = brokerService;
     _partnerlistService = partnerlistService;
     _recommendagentService = recommendagentService;
     _roleService = roleService;
     _MessageService = MessageService;
     _userService = userService;
     _brokerAccountService = brokerAccountService;
     _eventOrderService = eventOrderService;
     _inviteCodeService = inviteCodeService;
     _levelService = levelService;
     _agentBillService = agentBillService;
     _eventService = eventService;
 }
开发者ID:glustful,项目名称:.NetProject,代码行数:42,代码来源:BrokerInfoController.cs


示例6: AuthenticationController

 public AuthenticationController(
     OwinEnvironmentService owin,
     IViewService viewService, 
     IUserService userService, 
     IdentityServerOptions idSvrOptions, 
     IClientStore clientStore, 
     IEventService eventService,
     ILocalizationService localizationService,
     SessionCookie sessionCookie, 
     MessageCookie<SignInMessage> signInMessageCookie,
     MessageCookie<SignOutMessage> signOutMessageCookie,
     LastUserNameCookie lastUsernameCookie,
     AntiForgeryToken antiForgeryToken)
 {
     this.context = new OwinContext(owin.Environment);
     this.viewService = viewService;
     this.userService = userService;
     this.options = idSvrOptions;
     this.clientStore = clientStore;
     this.eventService = eventService;
     this.localizationService = localizationService;
     this.sessionCookie = sessionCookie;
     this.signInMessageCookie = signInMessageCookie;
     this.signOutMessageCookie = signOutMessageCookie;
     this.lastUsernameCookie = lastUsernameCookie;
     this.antiForgeryToken = antiForgeryToken;
 }
开发者ID:nmeierpolys,项目名称:Thinktecture.IdentityServer.v3,代码行数:27,代码来源:AuthenticationController.cs


示例7: EventController

 public EventController(IEventService eventService, IActivityService activityService, IUserService userService, IEmailService emailService)
 {
     this.eventService = eventService;
     this.activityService = activityService;
     this.userService = userService;
     this.emailService = emailService;
 }
开发者ID:JotaAlava,项目名称:EventHub1.1,代码行数:7,代码来源:EventController.cs


示例8: EventDetailsViewModel

 public EventDetailsViewModel(ILocalStorageService localStorageService, INetworkConnectionService networkConnectionService, IMessageDialogService messageDialogService, IEventService eventService)
 {
     _localStorageService = localStorageService;
     _networkConnectionService = networkConnectionService;
     _messageDialogService = messageDialogService;
     _eventService = eventService;
 }
开发者ID:mjtpena,项目名称:Aevents,代码行数:7,代码来源:EventDetailsViewModel.cs


示例9: EventController

 public EventController(ISecurityService securityService, IEventService eventService, IMessageService messageService)
     : base(securityService)
 {
     _securityService = securityService;
     _eventService = eventService;
     _messageService = messageService;
 }
开发者ID:JudasHerb,项目名称:MyCommunity,代码行数:7,代码来源:EventController.cs


示例10: AccessTokenValidationController

 public AccessTokenValidationController(TokenValidator validator, IdentityServerOptions options, ILocalizationService localizationService, IEventService events)
 {
     _validator = validator;
     _options = options;
     _localizationService = localizationService;
     _events = events;
 }
开发者ID:nheijminkccv,项目名称:IdentityServer3,代码行数:7,代码来源:AccessTokenValidationController.cs


示例11: EventResultHandler

 public EventResultHandler(IUserService userService, IEventService eventService, IFilterService filterService)
 {
     
     _userService = userService;
     _eventService = eventService;
     _filterService = filterService;
 }
开发者ID:snoopie72,项目名称:NrImporter,代码行数:7,代码来源:EventResultHandler.cs


示例12: MyBlobsController

 public MyBlobsController(IPermissionService permissionService, IBlobService blobService, IBlobSetService blobSetService, IEventService eventService)
 {
     this.permissionService = permissionService;
     this.blobService = blobService;
     this.blobSetService = blobSetService;
     this.eventService = eventService;
 }
开发者ID:ShuHuiC,项目名称:BlobShare,代码行数:7,代码来源:MyBlobsController.cs


示例13: EventsController

 public EventsController(IUserProfileService profileService, IEventService eventService, IFacebookService facebookService, IMediaService mediaService)
 {
     _profileService = profileService;
     _eventService = eventService;
     _facebookService = facebookService;
     _mediaService = mediaService;
 }
开发者ID:ryanerdmann,项目名称:angora,代码行数:7,代码来源:EventsController.cs


示例14: AuthorizeResponseGenerator

 public AuthorizeResponseGenerator(ILogger<AuthorizeResponseGenerator> logger, ITokenService tokenService, IAuthorizationCodeStore authorizationCodes, IEventService events)
 {
     _logger = logger;
     _tokenService = tokenService;
     _authorizationCodes = authorizationCodes;
     _events = events;
 }
开发者ID:haoas,项目名称:IdentityServer4,代码行数:7,代码来源:AuthorizeResponseGenerator.cs


示例15: ClientSecretValidator

 public ClientSecretValidator(IClientStore clients, SecretParser parser, SecretValidator validator, IEventService events, ILoggerFactory loggerFactory)
 {
     _clients = clients;
     _parser = parser;
     _validator = validator;
     _events = events;
     _logger = loggerFactory.CreateLogger<ClientSecretValidator>();
 }
开发者ID:Rafael-Miceli,项目名称:IdentityServer4,代码行数:8,代码来源:ClientSecretValidator.cs


示例16: ScopeSecretValidator

 public ScopeSecretValidator(IScopeStore scopes, SecretParser parsers, SecretValidator validator, IEventService events, ILogger<ScopeSecretValidator> logger)
 {
     _scopes = scopes;
     _parser = parsers;
     _validator = validator;
     _events = events;
     _logger = logger;
 }
开发者ID:Rafael-Miceli,项目名称:IdentityServer4,代码行数:8,代码来源:ScopeSecretValidator.cs


示例17: TokenEndpointController

 /// <summary>
 /// Initializes a new instance of the <see cref="TokenEndpointController" /> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="requestValidator">The request validator.</param>
 /// <param name="clientValidator">The client validator.</param>
 /// <param name="generator">The generator.</param>
 /// <param name="events">The events service.</param>
 public TokenEndpointController(IdentityServerOptions options, TokenRequestValidator requestValidator, ClientSecretValidator clientValidator, TokenResponseGenerator generator, IEventService events)
 {
     _requestValidator = requestValidator;
     _clientValidator = clientValidator;
     _generator = generator;
     _options = options;
     _events = events;
 }
开发者ID:nheijminkccv,项目名称:IdentityServer3,代码行数:16,代码来源:TokenEndpointController.cs


示例18: EventController

 public EventController(
     IEventService eventService,
     ILocationService locationService
     )
 {
     _eventService = eventService;
     _locationService = locationService;
 }
开发者ID:GoodmanEScott,项目名称:Decisive,代码行数:8,代码来源:EventController.cs


示例19: ClientSecretValidator

 public ClientSecretValidator(IClientStore clients, IEnumerable<ISecretParser> parsers, IEnumerable<ISecretValidator> validators, OwinEnvironmentService environment, IEventService events)
 {
     _clients = clients;
     _parsers = parsers;
     _validators = validators;
     _environment = environment;
     _events = events;
 }
开发者ID:henryng24,项目名称:IdentityServer3,代码行数:8,代码来源:ClientSecretValidator.cs


示例20: UserInfoEndpointController

 /// <summary>
 /// Initializes a new instance of the <see cref="UserInfoEndpointController"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="tokenValidator">The token validator.</param>
 /// <param name="generator">The generator.</param>
 /// <param name="tokenUsageValidator">The token usage validator.</param>
 /// <param name="events">The event service</param>
 public UserInfoEndpointController(IdentityServerOptions options, TokenValidator tokenValidator, UserInfoResponseGenerator generator, BearerTokenUsageValidator tokenUsageValidator, IEventService events)
 {
     _tokenValidator = tokenValidator;
     _generator = generator;
     _options = options;
     _tokenUsageValidator = tokenUsageValidator;
     _events = events;
 }
开发者ID:nheijminkccv,项目名称:IdentityServer3,代码行数:16,代码来源:UserInfoEndpointController.cs



注:本文中的IEventService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IEventSource类代码示例发布时间:2022-05-24
下一篇:
C# IEventRepository类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap