Exemplo n.º 1
0
 public string OnUpdate(string cbSessionId, MsgUnitUpdate msgUnit)
 {
     log("OnUpdate() received " + (msgUnit.IsOneway()?"oneway ":"") + "message from xmlBlaster:");
     if (callbackSessionId != cbSessionId)
     {
         log("Not authorized");
     }
     log(msgUnit.ToString());
     return("<qos><state id='OK'/></qos>");
     //throw new XmlBlasterException("user.update.illegalArgument", "A test exception from OnUpdate()");
 }
Exemplo n.º 2
0
    public string OnUpdate(string cbSessionId, MsgUnitUpdate msgUnit)
    {
        Console.WriteLine("OnUpdate() invoked START ==================");
        if (callbackSessionId != cbSessionId)
        {
            Console.WriteLine("Not authorized");
        }
        Console.WriteLine(msgUnit.GetUpdateKey().ToXml());
        Console.WriteLine(msgUnit.GetContentStr());
        Console.WriteLine(msgUnit.GetUpdateQos().ToXml());
        string ret = "<qos><state id='OK'/></qos>";

        Console.WriteLine("OnUpdate() invoked DONE ===================");
        //throw new XmlBlasterException("user.update.illegalArgument", "A test exception from OnUpdate()");
        return(ret);
    }