private IMsgBusContext prepareMsgBusConext()
        {
            IMsgBusContext ctx = WebApiApplication.CompositionContainer.GetExportedValue <IMsgBusContext>(
                ConfigurationManager.AppSettings["MessageBus"]);

            IMsgBusContextParams ctxParams = ctx.PrepareParams();

            ctxParams.Parameters["StorageAccountName"] = ConfigurationManager.AppSettings["StorageAccountName"];
            ctxParams.Parameters["StorageAccountKey"]  = ConfigurationManager.AppSettings["StorageAccountKey"];
            ctxParams.Parameters["MessageQueue"]       = ConfigurationManager.AppSettings["MessageQueue"];

            ctx.Init(ctxParams);

            return(ctx);
        }
        private IMsgBusContext prepareMsgBusConext()
        {
            IMsgBusContext ctx = Startup.CompositionContainer.GetExportedValue <IMsgBusContext>(
                config["MessageBus"]);

            IMsgBusContextParams ctxParams = ctx.PrepareParams();

            ctxParams.Parameters["StorageAccountName"] = config["StorageAccountName"];
            ctxParams.Parameters["StorageAccountKey"]  = config["StorageAccountKey"];
            ctxParams.Parameters["MessageQueue"]       = config["MessageQueue"];

            ctx.Init(ctxParams);

            return(ctx);
        }