Amazon.Runtime.PreRequestEventArgs.Create C# (CSharp) Method

Create() static private method

static private Create ( AmazonWebServiceRequest request ) : PreRequestEventArgs
request AmazonWebServiceRequest
return PreRequestEventArgs
        internal static PreRequestEventArgs Create(AmazonWebServiceRequest request)
        {
            PreRequestEventArgs args = new PreRequestEventArgs
            {
                Request = request
            };
            return args;
        }

Usage Example

 protected void ProcessPreRequestHandlers(IExecutionContext executionContext)
 {
     if (mBeforeMarshallingEvent != null)
     {
         PreRequestEventArgs e = PreRequestEventArgs.Create(executionContext.RequestContext.OriginalRequest);
         mBeforeMarshallingEvent(this, e);
     }
 }
All Usage Examples Of Amazon.Runtime.PreRequestEventArgs::Create