本文整理汇总了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;
}
示例2: Start
public virtual void Start(IEventService instance)
{
if (host != null)
throw new NotSupportedException("Service has already started.");
CreateServiceHost(instance);
host.Open();
}
示例3: EventController
public EventController(IOrchardServices services,
IEventService eventService)
{
T = NullLocalizer.Instance;
_eventService = eventService;
_services = services;
}
示例4: CommunityController
public CommunityController(IMessageService messageService,ISecurityService securityService, IEventService eventService)
: base(securityService)
{
_messageService = messageService;
_securityService = securityService;
_eventService = eventService;
}
示例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;
}
示例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;
}
示例7: EventController
public EventController(IEventService eventService, IActivityService activityService, IUserService userService, IEmailService emailService)
{
this.eventService = eventService;
this.activityService = activityService;
this.userService = userService;
this.emailService = emailService;
}
示例8: EventDetailsViewModel
public EventDetailsViewModel(ILocalStorageService localStorageService, INetworkConnectionService networkConnectionService, IMessageDialogService messageDialogService, IEventService eventService)
{
_localStorageService = localStorageService;
_networkConnectionService = networkConnectionService;
_messageDialogService = messageDialogService;
_eventService = eventService;
}
示例9: EventController
public EventController(ISecurityService securityService, IEventService eventService, IMessageService messageService)
: base(securityService)
{
_securityService = securityService;
_eventService = eventService;
_messageService = messageService;
}
示例10: AccessTokenValidationController
public AccessTokenValidationController(TokenValidator validator, IdentityServerOptions options, ILocalizationService localizationService, IEventService events)
{
_validator = validator;
_options = options;
_localizationService = localizationService;
_events = events;
}
示例11: EventResultHandler
public EventResultHandler(IUserService userService, IEventService eventService, IFilterService filterService)
{
_userService = userService;
_eventService = eventService;
_filterService = filterService;
}
示例12: MyBlobsController
public MyBlobsController(IPermissionService permissionService, IBlobService blobService, IBlobSetService blobSetService, IEventService eventService)
{
this.permissionService = permissionService;
this.blobService = blobService;
this.blobSetService = blobSetService;
this.eventService = eventService;
}
示例13: EventsController
public EventsController(IUserProfileService profileService, IEventService eventService, IFacebookService facebookService, IMediaService mediaService)
{
_profileService = profileService;
_eventService = eventService;
_facebookService = facebookService;
_mediaService = mediaService;
}
示例14: AuthorizeResponseGenerator
public AuthorizeResponseGenerator(ILogger<AuthorizeResponseGenerator> logger, ITokenService tokenService, IAuthorizationCodeStore authorizationCodes, IEventService events)
{
_logger = logger;
_tokenService = tokenService;
_authorizationCodes = authorizationCodes;
_events = events;
}
示例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>();
}