public override Task OnActivateAsync() { // note: normally we would use dependency injection // but since we do not have access to the registered services collection // from within a bootstrapper we do it this way: // first try to resolve from the container, if not present in container // then instantiate the default siloDetailsProvider = (ServiceProvider.GetService(typeof(ISiloDetailsProvider)) as ISiloDetailsProvider) ?? new MembershipTableSiloDetailsProvider(GrainFactory); Counters = new DashboardCounters(); RegisterTimer(Callback, null, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1)); StartTime = DateTime.UtcNow; return(base.OnActivateAsync()); }
public override Task OnActivateAsync() { this.Counters = new DashboardCounters(); this.RegisterTimer(this.Callback, null, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(10)); return(base.OnActivateAsync()); }
public override Task OnActivateAsync() { this.Counters = new DashboardCounters(); this.RegisterTimer(this.Callback, null, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(10)); return base.OnActivateAsync(); }