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)); }
public void Initialise() { publisher = dataSource.CreateActivePublisher(new PrefixNamespace("/TEMPLATE/DOTNET/PRICING"), this); }