Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Dictionary <string, object> inputParameters = ReadInputParameters();

        string          databaseName    = ConfigurationManager.AppSettings["mongoDatabaseName"];
        MongoConnection mongoConnection = MongoConnection.GetConnection(databaseName);

        BackendMessage message = BackendMessage.Create(mongoConnection, "Backend Message", inputParameters);

        OptionHandler handler = new OptionHandler(mongoConnection);
        Dictionary <string, object> outputParameters = handler.GetResponse(message);

        SendOutputParameters(outputParameters);
    }