コード例 #1
0
 public ContainerAggregatorActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo)
     : base(context, actorTypeInfo)
 {
     this.LoadLiveCounterSettings();
     this.containerLivenessCounter  = new LivenessCounter <string>(expirationIntervalInSeconds, fuzzIntervalInSeconds);
     this.ignoreOtherUpdatesEntries = new ConcurrentDictionary <string, Timer>();
     this.updateLogQueue            = new Queue <KeyValuePair <string, string> >(MaxUpdateLogEntriesToKeep);
 }
コード例 #2
0
ファイル: WebFront.cs プロジェクト: amanbha/samples
 public WebFront(StatelessServiceContext context)
     : base(context)
 {
     this.LoadLiveCounterSettings();
     this.counter = new LivenessCounter <string>(expirationIntervalInSeconds, fuzzIntervalInSeconds);
     nodeName     = context.NodeContext.NodeName;
     serviceUri   = ActorNameFormat.GetFabricServiceUri(typeof(IContainerAggregatorActor));
     proxy        = ActorServiceProxy.Create <IContainerAggregator>(serviceUri, 0);
     reportTimer  = new Timer(this.Report, null, TimeSpan.FromSeconds(reportIntervalInSeconds), TimeSpan.FromSeconds(reportIntervalInSeconds));
 }
コード例 #3
0
 public ValuesController(ILivenessCounter <string> counter, Uri serviceUri)
 {
     this.counter = counter;
     proxy        = ActorServiceProxy.Create <IContainerAggregator>(serviceUri, 0);
 }