internal MockActorManager(ActorService actorService) { this.actorService = actorService; this.diagnosticsManager = new MockDiagnosticsManager(actorService); this.eventManager = new MockActorEventManager(actorService.ActorTypeInformation); this.remindersByActorId = new ConcurrentDictionary <ActorId, ConcurrentDictionary <string, ActorReminder> >(); this.traceSource = new FabricEvents.ExtensionsEvents(FabricEvents.Tasks.ActorFramework); }
internal MockActorManager(ActorService actorService) { this.actorService = actorService; this.diagnosticsManager = new MockDiagnosticsManager(actorService); this.eventManager = new MockActorEventManager(actorService.ActorTypeInformation); this.remindersByActorId = new ConcurrentDictionary <ActorId, ConcurrentDictionary <string, ActorReminder> >(); this.traceSource = ActorEventSource.Instance; }
internal ActorManager(ActorService actorService) { this.actorService = actorService; this.traceId = actorService.Context.TraceId; this.diagnosticsManager = new DiagnosticsManager(actorService); this.diagnosticsEventManager = this.diagnosticsManager.DiagnosticsEventManager; this.eventManager = new ActorEventManager(actorService.ActorTypeInformation); this.isClosed = false; this.activeActors = new ConcurrentDictionary <ActorId, ActorBase>(); this.remindersByActorId = new ConcurrentDictionary <ActorId, ConcurrentDictionary <string, ActorReminder> >(); this.reminderMethodContext = ActorMethodContext.CreateForReminder(ReceiveReminderMethodName); this.gcTimer = new Timer(this.RunGarbageCollection, null, Timeout.Infinite, Timeout.Infinite); }