예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NetworkProcessCallbackContainer"/> class.
        /// </summary>
        /// <param name="networkProcess">
        /// The network process.
        /// </param>
        /// <param name="callback">
        /// The success callback.
        /// </param>
        /// <param name="errorCallback">
        /// The error callback.
        /// </param>
        public NetworkProcessCallbackContainer(
            NetworkProcess networkProcess,
            WeakCallback callback,
            WeakCallback errorCallback)
        {
            if (networkProcess == null)
            {
                throw new ArgumentNullException(nameof(networkProcess));
            }

            this.NetworkProcess = networkProcess;
            this.Callback       = callback;
            this.ErrorCallback  = errorCallback;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkProcessCallbackContainer"/> class.
 /// </summary>
 /// <param name="networkProcess">
 /// The network process.
 /// </param>
 /// <param name="callback">
 /// The success callback.
 /// </param>
 public NetworkProcessCallbackContainer(NetworkProcess networkProcess, WeakCallback callback) : this(networkProcess, callback, null)
 {
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkProcessCallbackContainer"/> class.
 /// </summary>
 /// <param name="networkProcess">
 /// The network process.
 /// </param>
 public NetworkProcessCallbackContainer(NetworkProcess networkProcess)
     : this(networkProcess, null, null)
 {
 }