/// <summary>
        /// Makes a request to a remote media server to export one of its binary files
        /// to another location.
        /// </summary>
        /// <param name="exportThis">
        /// The resource (of this media object) that should be exported.
        /// </param>
        /// <param name="sendHere">
        /// The uri where the binary should be sent.
        /// </param>
        /// <param name="Tag">
        /// Miscellaneous, user-provided object for tracking this
        /// asynchronous call. Can be used as a means to pass a
        /// user-defined "state object" at invoke-time so that
        /// the executed callback during results-processing can be
        /// aware of the component's state at the time of the call.
        /// </param>
        /// <param name="callback">the callback to execute when results become available</param>
        /// <exception cref="Error_CannotGetParent">
        /// Thrown if the parent of this object is null.
        /// </exception>
        public void RequestExportResource(ICpResource exportThis, System.Uri sendHere, object Tag, CpMediaDelegates.Delegate_ResultExportResource callback)
        {
            // calls parent's implementation of method
            CpMediaContainer parent = (CpMediaContainer)this.Parent;

            parent.RequestExportResource(exportThis, sendHere, Tag, callback);
        }
        /// <summary>
        /// Requests a remote media server to delete a resource from its local file system.
        /// </summary>
        /// <param name="deleteThisResource">the resource to request for deletion</param>
        /// <param name="Tag">
        /// Miscellaneous, user-provided object for tracking this
        /// asynchronous call. Can be used as a means to pass a
        /// user-defined "state object" at invoke-time so that
        /// the executed callback during results-processing can be
        /// aware of the component's state at the time of the call.
        /// </param>
        /// <param name="callback">callback to execute when results have been obtained</param>
        /// <exception cref="Error_ResourceNotOnServer">
        /// Thrown when attempting to delete a resource object that
        /// is not part of the server's content hierarchy.
        /// </exception>
        /// <exception cref="NullReferenceException">
        /// Thrown when attempting a remove a resource that has
        /// a null/empty value for its contentUri.
        /// </exception>
        /// <exception cref="Error_CannotGetParent">
        /// Thrown if the parent of this object is null.
        /// </exception>
        /// <exception cref="InvalidCastException">
        /// Thrown if the parent of this object is not a <see cref="CpMediaContainer"/>.
        /// </exception>
        public void RequestDeleteResource(ICpResource deleteThisResource, object Tag, CpMediaDelegates.Delegate_ResultDeleteResource callback)
        {
            // calls parent's implementation of method
            CpMediaContainer parent = (CpMediaContainer)this.Parent;

            parent.RequestDeleteResource(deleteThisResource, Tag, callback);
        }
示例#3
0
 public Error_ResourceNotOnServer(ICpResource resource, CpMediaServer server)
     : base("Resource object not on server")
 {
     this.Resource = resource;
     this.Server   = server;
 }
 /// <summary>
 /// Makes a request to a remote media server to import the binary file from a URI to 
 /// a resource that is part of the server's content hierarchy.
 /// </summary>
 /// <param name="sourceUri">the URI where binary should be pulled</param>
 /// <param name="importHere">the <see cref="ICpResource"/> object that represents the
 /// destination of the imported binary
 /// </param>
 /// <param name="Tag">
 /// Miscellaneous, user-provided object for tracking this 
 /// asynchronous call. Can be used as a means to pass a 
 /// user-defined "state object" at invoke-time so that 
 /// the executed callback during results-processing can be
 /// aware of the component's state at the time of the call.
 /// </param>
 /// <param name="callback">the callback to execute when results become available</param>
 /// <exception cref="Error_ResourceNotOnServer">
 /// Thrown when attempting to delete a resource object that
 /// is not part of the server's content hierarchy.
 /// </exception>
 /// <exception cref="NullReferenceException">
 /// Thrown when attempting a remove a resource that has
 /// a null/empty value for its contentUri.
 /// </exception>
 /// <exception cref="Error_CannotGetParent">
 /// Thrown if the parent of this object is null.
 /// </exception>
 /// <exception cref="InvalidCastException">
 /// Thrown if the parent of this object is not a <see cref="CpMediaContainer"/>.
 /// </exception>
 public void RequestImportResource(System.Uri sourceUri, ICpResource importHere, object Tag, CpMediaDelegates.Delegate_ResultImportResource callback)
 {
     // calls parent's implementation of method
     CpMediaContainer parent = (CpMediaContainer) this.Parent;
     parent.RequestImportResource(sourceUri, importHere, Tag, callback);
 }
 /// <summary>
 /// Makes a request to a remote media server to export one of its binary files
 /// to another location.
 /// </summary>
 /// <param name="exportThis">
 /// The resource (of this media object) that should be exported.
 /// </param>
 /// <param name="sendHere">
 /// The uri where the binary should be sent.
 /// </param>
 /// <param name="Tag">
 /// Miscellaneous, user-provided object for tracking this 
 /// asynchronous call. Can be used as a means to pass a 
 /// user-defined "state object" at invoke-time so that 
 /// the executed callback during results-processing can be
 /// aware of the component's state at the time of the call.
 /// </param>
 /// <param name="callback">the callback to execute when results become available</param>
 /// <exception cref="Error_CannotGetParent">
 /// Thrown if the parent of this object is null.
 /// </exception>
 public void RequestExportResource(ICpResource exportThis, System.Uri sendHere, object Tag, CpMediaDelegates.Delegate_ResultExportResource callback)
 {
     // calls parent's implementation of method
     CpMediaContainer parent = (CpMediaContainer) this.Parent;
     parent.RequestExportResource(exportThis, sendHere, Tag, callback);
 }
 /// <summary>
 /// Requests a remote media server to delete a resource from its local file system.
 /// </summary>
 /// <param name="deleteThisResource">the resource to request for deletion</param>
 /// <param name="Tag">
 /// Miscellaneous, user-provided object for tracking this 
 /// asynchronous call. Can be used as a means to pass a 
 /// user-defined "state object" at invoke-time so that 
 /// the executed callback during results-processing can be
 /// aware of the component's state at the time of the call.
 /// </param>
 /// <param name="callback">callback to execute when results have been obtained</param>
 /// <exception cref="Error_ResourceNotOnServer">
 /// Thrown when attempting to delete a resource object that
 /// is not part of the server's content hierarchy.
 /// </exception>
 /// <exception cref="NullReferenceException">
 /// Thrown when attempting a remove a resource that has
 /// a null/empty value for its contentUri.
 /// </exception>
 /// <exception cref="Error_CannotGetParent">
 /// Thrown if the parent of this object is null.
 /// </exception>
 /// <exception cref="InvalidCastException">
 /// Thrown if the parent of this object is not a <see cref="CpMediaContainer"/>.
 /// </exception>
 public void RequestDeleteResource(ICpResource deleteThisResource, object Tag, CpMediaDelegates.Delegate_ResultDeleteResource callback)
 {
     // calls parent's implementation of method
     CpMediaContainer parent = (CpMediaContainer) this.Parent;
     parent.RequestDeleteResource(deleteThisResource, Tag, callback);
 }