Ejemplo n.º 1
0
 /// <summary>
 /// Executes the on entry start actions.
 /// </summary>
 /// <param name="entry">The entry.</param>
 internal void ExecuteOnEntryStartActions(ODataResource entry)
 {
     // Be noticed that the entry could be null in some case, like expand.
     if (this.readingStartResourceActions.Count > 0)
     {
         ReadingEntryArgs args = new ReadingEntryArgs(entry);
         foreach (Action <ReadingEntryArgs> entryAction in this.readingStartResourceActions)
         {
             entryAction(args);
         }
     }
 }
 /// <summary>
 /// Executes the on entry start actions.
 /// </summary>
 /// <param name="entry">The entry.</param>
 internal void ExecuteOnEntryStartActions(ODataEntry entry)
 {
     // Be noticed that the entry could be null in some case, like expand.
     if (this.readingStartEntryActions.Count > 0)
     {
         ReadingEntryArgs args = new ReadingEntryArgs(entry);
         foreach (Action<ReadingEntryArgs> entryAction in this.readingStartEntryActions)
         {
             entryAction(args);
         }
     }
 }