Exemplo n.º 1
0
        bool ModifyThingPath(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String path)
        {
            if (true) // Decide whether to modify an item.
            {         // We're going to do it.
              // Modify the item.

                // Raise event(s).
                serviceProtocol.DoThingPathModified(requestID, guid, path);

                return(true);
            }
            else
            { // We're not going to do it.
                return(false);
            }
        }
Exemplo n.º 2
0
  bool ModifyThingPath(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String path)
  {
    if (true) // Decide whether to modify an item.
    { // We're going to do it.
      // Modify the item.

      // Raise event(s).
      serviceProtocol.DoThingPathModified(requestID, guid, path);

      return true;
    }
    else
    { // We're not going to do it.
      return false;
    }
  }