ServiceStack.HttpRequestExtensions.SetOperationName C# (CSharp) Method

SetOperationName() public static method

public static SetOperationName ( this httpReq, string operationName ) : void
httpReq this
operationName string
return void
        public static void SetOperationName(this IRequest httpReq, string operationName)
        {
            if (httpReq.OperationName == null)
            {
#if !NETSTANDARD1_6
                var aspReq = httpReq as AspNetRequest;
                if (aspReq != null)
                {
                    aspReq.OperationName = operationName;
                    return;
                }

                var listenerReq = httpReq as ListenerRequest;
                if (listenerReq != null)
                {
                    listenerReq.OperationName = operationName;
                }
#endif
            }
        }