Delete() public method

public Delete ( Spark.Engine.Core.Interaction entry ) : void
entry Spark.Engine.Core.Interaction
return void
 public void Process(Interaction interaction)
 {
     if (interaction.HasResource())
     {
         put(interaction);
     }
     else
     {
         if (interaction.IsDeleted())
         {
             store.Delete(interaction);
         }
         else
         {
             throw new Exception("Entry is neither resource nor deleted");
         }
     }
 }
Example #2
0
 public void Process(Entry entry)
 {
     if (entry.HasResource())
     {
         put(entry);
     }
     else
     {
         if (entry.IsDeleted())
         {
             store.Delete(entry);
         }
         else
         {
             throw new Exception("Entry is neither resource nor deleted");
         }
     }
 }