Example #1
0
 // All exchange types:  Direct, Topic, and Fan-out are defined within code with the most common default
 // values.  These default values can be overridden by specifying them within the application's configuration.
 private void ApplyConfiguredOverrides(IEnumerable <ExchangeMeta> definitions)
 {
     foreach (var definition in definitions)
     {
         BusModule.ApplyExchangeSettings(definition);
     }
 }
Example #2
0
        protected virtual IRpcClient CreateRpcClient(ExchangeMeta definition)
        {
            IBus bus       = BusModule.GetBus(definition.BusName);
            var  rpcClient = new RpcClient(definition.BusName, definition.QueueMeta.QueueName, bus);
            var  logger    = Context.LoggerFactory.CreateLogger <RpcClient>();

            rpcClient.SetLogger(logger);
            return(rpcClient);
        }