Exemplo n.º 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;
        }
Exemplo n.º 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)
 {
 }
Exemplo n.º 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)
 {
 }