File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public override void UpdateFrom(Event update)
4545 id = update . id ;
4646 }
4747
48+ [ Obsolete ( "Use the calls setting individual fields of the API object instead." ) ]
4849 public override string SaveChanges ( Session session , string opaqueRef , Event serverObject )
4950 {
5051 if ( opaqueRef == null )
Original file line number Diff line number Diff line change @@ -222,6 +222,7 @@ public override void UpdateFrom(Session update)
222222 throw new Exception ( "The method or operation is not implemented." ) ;
223223 }
224224
225+ [ Obsolete ( "Use the calls setting individual fields of the API object instead." ) ]
225226 public override string SaveChanges ( Session session , string serverOpaqueRef , Session serverObject )
226227 {
227228 throw new Exception ( "The method or operation is not implemented." ) ;
Original file line number Diff line number Diff line change @@ -42,15 +42,7 @@ public abstract partial class XenObject<S> : IXenObject where S : XenObject<S>
4242 /// </summary>
4343 public abstract void UpdateFrom ( S record ) ;
4444
45- /// <summary>
46- /// Save any changed fields to the server.
47- /// This method is usually invoked on a thread pool thread.
48- /// </summary>
49- /// <param name="session"></param>
50- /// <param name="serverOpaqueRef"/>
51- /// <param name="serverObject">Changes are sent to the server if the field in "this"
52- /// is different from serverObject. Can be the object in the cache, or another reference
53- /// object that we want to save changes to.</param>
45+ [ Obsolete ( "Use the calls setting individual fields of the API object instead." ) ]
5446 public abstract string SaveChanges ( Session session , string serverOpaqueRef , S serverObject ) ;
5547
5648 public string opaque_ref { get ; set ; }
Original file line number Diff line number Diff line change @@ -353,6 +353,8 @@ and gen_class out_chan cls =
353353 print
354354 " ;\n \
355355 \ }\n\n \
356+ \ [Obsolete(" Use the calls setting individual fields of the API \
357+ object instead." )]
356358 \ public override string SaveChanges(Session session, string \
357359 opaqueRef, %s server)\n \
358360 \ {\n \
You can’t perform that action at this time.
0 commit comments