System.Net.SSPISecureChannelType.EncryptMessage C# (CSharp) Method

EncryptMessage() public method

public EncryptMessage ( SafeDeleteContext context, System.Net.Interop &inputOutput, uint sequenceNumber ) : int
context SafeDeleteContext
inputOutput System.Net.Interop
sequenceNumber uint
return int
        public int EncryptMessage(SafeDeleteContext context, ref Interop.SspiCli.SecBufferDesc inputOutput, uint sequenceNumber)
        {
            try
            {
                bool ignore = false;
                context.DangerousAddRef(ref ignore);
                return Interop.SspiCli.EncryptMessage(ref context._handle, 0, ref inputOutput, sequenceNumber);
            }
            finally
            {
                context.DangerousRelease();
            }
        }