コード例 #1
0
ファイル: Services.cs プロジェクト: titobrasolin/StrongMonkey
 public void FileCreateAsync(DrupalFile file, object asyncState)
 {
     if (this.FileCreateOperationCompleted == null) {
         this.FileCreateOperationCompleted = new AsyncCallback (this.OnFileCreateCompleted);
     }
     ServiceSystem.BeginFileCreate (file, this.FileCreateOperationCompleted, asyncState);
 }
コード例 #2
0
ファイル: Services.cs プロジェクト: titobrasolin/StrongMonkey
 public DrupalFile FileCreate(DrupalFile file)
 {
     ClearErrors ();
     DrupalFile res = default(DrupalFile);
     try {
         res = ServiceSystem.FileCreate (file);
     } catch (Exception ex) {
         HandleException (ex, "FileCreate");
     }
     return res;
 }