コード例 #1
0
 public AzureFunctionsController(ITemplatesManager templatesManager, ISettings settings, IDiagnosticsManager diagnosticsManager, TelemetryClient telemetryClient, IPassThroughRequestManager passThroughRequestManager)
 {
     _telemetryClient           = telemetryClient;
     _templatesManager          = templatesManager;
     _settings                  = settings;
     _diagnosticsManager        = diagnosticsManager;
     _passThroughRequestManager = passThroughRequestManager;
 }
コード例 #2
0
 private void DisposeDiagnosticsManager()
 {
     if (this.diagnosticsManager != null)
     {
         this.diagnosticsManager.Dispose();
         this.diagnosticsManager = null;
     }
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 public TracingService(IDiagnosticsManager observerManager, ILogger <TracingService> logger = null)
 {
     _observerManager = observerManager;
     _logger          = logger;
 }
コード例 #7
0
 public DiagnosticServices(IDiagnosticsManager observerManager, ILogger <DiagnosticServices> logger = null)
 {
     _observerManager = observerManager;
     _logger          = logger;
 }