Exemplo n.º 1
0
        public ChirperNetworkDriver()
        {
            this.LinksPerUser = 27;
            this.LoggedInUserRate = 0.001;
            this.ShouldRechirpRate = 0.0;
            this.ChirpPublishTimebase = 0;
            this.ChirpPublishTimeRandom = true;
            this.activeUsers = new List<SimulatedUser>();
            this.PipelineLength = 500;
            this.fortune = new Fortune("fortune.txt");

            if (!Orleans.GrainClient.IsInitialized)
            {
                Orleans.GrainClient.Initialize();
            }
        }
Exemplo n.º 2
0
        public ChirperNetworkDriver()
        {
            this.LinksPerUser = 27;
            this.LoggedInUserRate = 0.001;
            this.ShouldRechirpRate = 0.0;
            this.ChirpPublishTimebase = 0;
            this.ChirpPublishTimeRandom = true;
            this.activeUsers = new List<SimulatedUser>();
            this.PipelineLength = 500;
            this.fortune = new Fortune("fortune.txt");

            if (!GrainClient.IsInitialized)
            {
                var config = ClientConfiguration.LocalhostSilo();
                GrainClient.Initialize(config);
            }
        }