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)
45
45
id = update . id ;
46
46
}
47
47
48
+ [ Obsolete ( "Use the calls setting individual fields of the API object instead." ) ]
48
49
public override string SaveChanges ( Session session , string opaqueRef , Event serverObject )
49
50
{
50
51
if ( opaqueRef == null )
Original file line number Diff line number Diff line change @@ -222,6 +222,7 @@ public override void UpdateFrom(Session update)
222
222
throw new Exception ( "The method or operation is not implemented." ) ;
223
223
}
224
224
225
+ [ Obsolete ( "Use the calls setting individual fields of the API object instead." ) ]
225
226
public override string SaveChanges ( Session session , string serverOpaqueRef , Session serverObject )
226
227
{
227
228
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>
42
42
/// </summary>
43
43
public abstract void UpdateFrom ( S record ) ;
44
44
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." ) ]
54
46
public abstract string SaveChanges ( Session session , string serverOpaqueRef , S serverObject ) ;
55
47
56
48
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 =
353
353
print
354
354
" ;\n \
355
355
\ }\n\n \
356
+ \ [Obsolete(\" Use the calls setting individual fields of the API \
357
+ object instead.\" )]\n \
356
358
\ public override string SaveChanges(Session session, string \
357
359
opaqueRef, %s server)\n \
358
360
\ {\n \
You can’t perform that action at this time.
0 commit comments