Exemplo n.º 1
0
        bool DeleteThing(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid)
        {
            if (true) // Decide whether to delete an Thing.
            {         // We're going to do it.
              // Delete the Thing.

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

                return(true);
            }
            else
            { // We're not going to do it.
                return(false);
            }
        }
Exemplo n.º 2
0
  bool DeleteThing(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid)
  {
    if (true) // Decide whether to delete an Thing.
    { // We're going to do it.
      // Delete the Thing.

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

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