Ejemplo n.º 1
0
        protected override DTObject DynamicInvoke(dynamic arg)
        {
            var cmd  = new CreateVirtualFile(arg.Name, arg.Extension, arg.StoreKey, arg.Size, arg.DirectoryId);
            var file = cmd.Execute();

            return(DTObject.CreateReusable("{id,name,storeKey,extension,size}", file));
        }
Ejemplo n.º 2
0
        public static VirtualFile AddFile(string name, string extension, string storeKey, long size, Guid diskId, Guid directoryId)
        {
            var cmd = new CreateVirtualFile(name, extension, storeKey, size, diskId, directoryId);

            return(cmd.Execute());
        }