当前位置: 首页>>代码示例>>C#>>正文


C# IEventService类代码示例

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


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


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