public void FileCreateAsync(DrupalFile file, object asyncState) { if (this.FileCreateOperationCompleted == null) { this.FileCreateOperationCompleted = new AsyncCallback (this.OnFileCreateCompleted); } ServiceSystem.BeginFileCreate (file, this.FileCreateOperationCompleted, asyncState); }
public DrupalFile FileCreate(DrupalFile file) { ClearErrors (); DrupalFile res = default(DrupalFile); try { res = ServiceSystem.FileCreate (file); } catch (Exception ex) { HandleException (ex, "FileCreate"); } return res; }