Add project files.
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Handlers
|
||||
{
|
||||
//=======================================================================
|
||||
// Ref. http://stackoverflow.com/questions/5895063/asynchronous-httplistener-problem-each-request-is-received-twice
|
||||
//=======================================================================
|
||||
public class HttpListenerCallbackState
|
||||
{
|
||||
public HttpListenerCallbackState (HttpListener listener)
|
||||
{
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
public class OpnHttpRequestHandler
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Configure the listener.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Start the listener.
|
||||
public void ListenAsynchronously ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Stop the listener.
|
||||
public void StopListening ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
private void Listen (object state)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// L i s t e n e r E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
private void ListenerCallback (IAsyncResult ar)
|
||||
{
|
||||
}
|
||||
private void HandleHttpRequest (HttpListenerContext context, long requestNumber)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>Intercept requests for static resources and respond with 'Not Found'.</summary>
|
||||
private bool IsStaticResourceUnavailable (HttpListenerRequest request)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using Sarand.OperationsMgr.Service.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.OperationsMgr.Service.Handlers
|
||||
{
|
||||
//=======================================================================
|
||||
public class OpnWebServiceRequestHandler
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Definitions.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public OpnWebServiceRequestHandler ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// W e b S e r v i c e R e q u e s t
|
||||
//-------------------------------------------------------------------
|
||||
public bool DoWebServiceRequest (long requestNumber, HttpListenerContext context)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// H a n d l e R e q u e s t
|
||||
//-------------------------------------------------------------------
|
||||
private void HandleRequest (OpnHttpRequestData requestData, String logPrefix)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user