Opc.Ua.Bindings.TcpClientChannel.HandleWriteComplete C# (CSharp) Method

HandleWriteComplete() protected method

Called when a write operation completes.
protected HandleWriteComplete ( BufferCollection buffers, object state, int bytesWritten, ServiceResult result ) : void
buffers BufferCollection
state object
bytesWritten int
result ServiceResult
return void
        protected override void HandleWriteComplete(BufferCollection buffers, object state, int bytesWritten, ServiceResult result)
        {
            lock (DataLock)
            {
                WriteOperation operation = state as WriteOperation;

                if (operation != null)
                {
                    if (ServiceResult.IsBad(result))
                    {
                        operation.Fault(new ServiceResult(StatusCodes.BadSecurityChecksFailed, result));
                    }
                }
            }

            base.HandleWriteComplete(buffers, state, bytesWritten, result);
        }