Example #1
0
        /// <summary>
        /// Begins the open for a StorageContainer.
        /// </summary>
        /// <returns>The open StorageContainer.</returns>
        /// <param name="displayName">Name of file.</param>
        /// <param name="callback">Method to call on completion.</param>
        /// <param name="state">Request identifier object for callback (can be null).</param>
        public IAsyncResult BeginOpenContainer(
            string displayName,
            AsyncCallback callback,
            object state
            )
        {
            IAsyncResult result = new OpenContainerLie(state, displayName);

            if (callback != null)
            {
                callback(result);
            }
            return(result);
        }
Example #2
0
		/// <summary>
		/// Begins the open for a StorageContainer.
		/// </summary>
		/// <returns>The open StorageContainer.</returns>
		/// <param name="displayName">Name of file.</param>
		/// <param name="callback">Method to call on completion.</param>
		/// <param name="state">Request identifier object for callback (can be null).</param>
		public IAsyncResult BeginOpenContainer(
			string displayName,
			AsyncCallback callback,
			object state
		) {
			IAsyncResult result = new OpenContainerLie(state, displayName);
			if (callback != null)
			{
				callback(result);
			}
			return result;
		}