Mindscape.Raygun4Net.RaygunClient.IgnoreFormFieldNames C# (CSharp) 메소드

IgnoreFormFieldNames() 공개 메소드

Adds a list of keys to ignore when attaching the Form data of an HTTP POST request. This allows you to remove sensitive data from the transmitted copy of the Form on the HttpRequest by specifying the keys you want removed. This method is only effective in a web context.
public IgnoreFormFieldNames ( ) : void
리턴 void
    public void IgnoreFormFieldNames(params string[] names)
    {
      _requestMessageOptions.AddFormFieldNames(names);
    }

Usage Example

예제 #1
0
        private RaygunClient CreateRaygunClient()
        {
            var client = new RaygunClient(ApiKey);

            client.IgnoreFormFieldNames(SplitValues(IgnoreFormFieldNames));
            client.IgnoreCookieNames(SplitValues(IgnoreCookieNames));
            client.IgnoreHeaderNames(SplitValues(IgnoreHeaderNames));
            client.IgnoreServerVariableNames(SplitValues(IgnoreServerVariableNames));

            return client;
        }