本文整理汇总了C#中IEventRepository类的典型用法代码示例。如果您正苦于以下问题:C# IEventRepository类的具体用法?C# IEventRepository怎么用?C# IEventRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IEventRepository类属于命名空间,在下文中一共展示了IEventRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoveProjectWorkItemHandler
public RemoveProjectWorkItemHandler(IProjectRepository projectRepository, IEventRepository eventRepository, IStackRepository stackRepository, ITokenRepository tokenRepository, IWebHookRepository webHookRepository) {
_projectRepository = projectRepository;
_eventRepository = eventRepository;
_stackRepository = stackRepository;
_tokenRepository = tokenRepository;
_webHookRepository = webHookRepository;
}
示例2: ContactsEventSink
public ContactsEventSink(
IDistributionPolicyFactory distributionPolicyFactory,
IEventRepository eventRepository,
IMailer mailer, IUserPresentationProvider userPresentationProvider)
: base(distributionPolicyFactory, eventRepository, mailer, userPresentationProvider)
{
}
示例3: ThrottleBotsPlugin
public ThrottleBotsPlugin(ICacheClient cacheClient, IEventRepository eventRepository, IProjectRepository projectRepository, IMetricsClient metricsClient, IQueue<WorkItemData> workItemQueue) {
_cacheClient = cacheClient;
_metricsClient = metricsClient;
_eventRepository = eventRepository;
_projectRepository = projectRepository;
_workItemQueue = workItemQueue;
}
示例4: DevicesController
public DevicesController(
IDeviceCommunicationService deviceCommunicationService,
DeviceCommunicationExtJsWeb.GpsCommunicationService.IGpsCommunicationContract gpsCommunicationContract,
IDeviceRepository deviceRepository,
IPacketRepository packetRepository,
IEventRepository eventRepository,
ICurrentEventRepository currentEventRepository,
IRequstAckCommandRepository requstAckCommandRepository,
ICacheDataRepository cacheDataRepository,
IDeviceStateDocuments deviceStateDocuments,
IDailyMileageRepository dailyMileageRepository,
IGeoPointRepository geoPointRepository,
ILogDocuments logDocuments)
{
DeviceCommunicationService = deviceCommunicationService;
DeviceRepository = deviceRepository;
PacketRepository = packetRepository;
EventRepository = eventRepository;
CurrentEventRepository = currentEventRepository;
RequstAckCommandRepository = requstAckCommandRepository;
CacheDataRepository = cacheDataRepository;
DeviceStateDocuments = deviceStateDocuments;
GpsCommunicationContract = gpsCommunicationContract;
DailyMileageRepository = dailyMileageRepository;
GeoPointRepository = geoPointRepository;
LogDocuments = logDocuments;
}
示例5: SetLocationFromGeoWorkItemHandler
public SetLocationFromGeoWorkItemHandler(ICacheClient cacheClient, IEventRepository eventRepository, IGeocodeService geocodeService, IMetricsClient metricsClient, IMessageBus messageBus, ILoggerFactory loggerFactory = null) : base(loggerFactory) {
_cacheClient = new ScopedCacheClient(cacheClient, "geo");
_eventRepository = eventRepository;
_geocodeService = geocodeService;
_metricsClient = metricsClient;
_lockProvider = new CacheLockProvider(cacheClient, messageBus);
}
示例6: EventLogic
public EventLogic(IEventRepository eventRepository, IClientRepository clientRepository, IClientLogic clientLogic, ILog log)
{
_eventRepository = eventRepository;
_clientRepository = clientRepository;
_clientLogic = clientLogic;
_log = log;
}
示例7: AutoSessionPlugin
public AutoSessionPlugin(ICacheClient cacheClient, IEventRepository eventRepository, AssignToStackAction assignToStack, UpdateStatsAction updateStats, LocationPlugin locationPlugin) {
_cacheClient = new ScopedCacheClient(cacheClient, "session");
_eventRepository = eventRepository;
_assignToStack = assignToStack;
_updateStats = updateStats;
_locationPlugin = locationPlugin;
}
示例8: DrillCreationViewModel
public DrillCreationViewModel(IDrillsRepository drillsRepository, IEventRepository eventRepository, ISessonStateService sessonStateService, INavigationService navigationService)
{
_drillsRepository = drillsRepository;
_eventRepository = eventRepository;
_sessonStateService = sessonStateService;
_navigationService = navigationService;
PageTitle = "New Practice Drill";
Sports = _eventRepository.Sports();
var defaultDuration = new DrillDuration {Minutes = 15, Name = "15 Minutes"};
Durations = new List<DrillDuration>
{
new DrillDuration{Minutes = 5, Name = "5 Minutes"},
new DrillDuration{Minutes = 10, Name = "10 Minutes"},
defaultDuration,
new DrillDuration{Minutes = 20, Name = "20 Minutes"},
new DrillDuration{Minutes = 25, Name = "25 Minutes"},
new DrillDuration{Minutes = 30, Name = "30 Minutes"},
new DrillDuration{Minutes = 45, Name = "45 Minutes"},
new DrillDuration{Minutes = 60, Name = "60 Minutes"},
};
SelectedDuration = defaultDuration;
}
示例9: GameProcessor
public GameProcessor(IImporterRepository importerRepository, IEventRepository eventRepository, IGamePlayFactory gamePlayFactory, IGameEventsFactory gameEventsFactory)
{
_importerRepository = importerRepository;
_eventRepository = eventRepository;
_gamePlayFactory = gamePlayFactory;
_gameEventsFactory = gameEventsFactory;
}
示例10: SessionPlugin
public SessionPlugin(ICacheClient cacheClient, IEventRepository eventRepository, AssignToStackAction assignToStack, UpdateStatsAction updateStats, LocationPlugin locationPlugin, ILoggerFactory loggerFactory = null) : base(loggerFactory) {
_cacheClient = new ScopedCacheClient(cacheClient, "session");
_eventRepository = eventRepository;
_assignToStack = assignToStack;
_updateStats = updateStats;
_locationPlugin = locationPlugin;
}
示例11: HomeController
public HomeController(IRepository<Post> repo, IRepository<Category> category, IEventRepository Event, IRepository<PopularCourse> popularCourses)
{
_eventRepo = Event;
_postRepo = repo;
_categoryRepo = category;
_popularCoursesRepo = popularCourses;
}
示例12: GetLastQueueEvent
public static Event GetLastQueueEvent(IEventRepository eventRepository, Monitors monitor, Pmta pmta, string queue)
{
var events = eventRepository.GetAll().Where(e => e.Monitor == monitor && !e.ResetEventId.HasValue && e.EventName != EventNames.ResetTime
&& e.EventActions.Any(ed => ed.PmtaId == pmta.PmtaId && ed.PmtaQueue.ToLower() == queue.ToLower()));
return events.Any() ? events.OrderByDescending(e=>e.DateCreated).First() : null;
}
示例13: ListingViewModel
public ListingViewModel( INavigationService navigationService, IEventRepository eventRepository)
{
_navigationService = navigationService;
_eventRepository = eventRepository;
PageTitle = "Teams Listing";
}
示例14: PlayerCreationViewModel
public PlayerCreationViewModel(INavigationService navigationService, IEventRepository eventRepository)
{
_navigationService = navigationService;
_eventRepository = eventRepository;
PageTitle = "Player Maintenance";
}
示例15: GameEventLandingViewModel
public GameEventLandingViewModel(IEventRepository eventRepository, IDrillsRepository drillsRepository,
INavigationService navigationService, ITileService tileService)
{
_eventRepository = eventRepository;
_drillsRepository = drillsRepository;
_navigationService = navigationService;
_tileService = tileService;
}