Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Initialize this stuff with some crap
- string appVirtualDir = "/";
- string appPhysicalDir = @"C:Documents and Settings";
- string page = @"localhost";
- string query = string.Empty;
- TextWriter output = null;
- //Create a SimpleWorkerRequest object passing down the crap
- SimpleWorkerRequest workerRequest = new SimpleWorkerRequest(appVirtualDir, appPhysicalDir, page, query, output);
- //Create your fake HttpContext instance
- HttpContext.Current = new HttpContext(workerRequest);
- MyClass c = new MyClass();
- MyClass c = MyClass.getInstance();
- Class A{
- public static readonly A Instance = new A();
- private A()
- {
- }
- }
Add Comment
Please, Sign In to add comment