Exemplo n.º 1
0
 public PriceGenerator(string subject, IActivePublisher publisher, ILogger logger)
 {
     this.subject           = subject;
     this.logger            = logger;
     this.publisher         = publisher;
     this.isInitialResponse = true;
     this.random            = new Random();
     this.price             = random.NextDouble() * Math.Pow(10, random.Next(0, 3));
 }
Exemplo n.º 2
0
 public void Initialise()
 {
     publisher = dataSource.CreateActivePublisher(new PrefixNamespace("/TEMPLATE/DOTNET/PRICING"), this);
 }