code_junkie

SharePoint and deployment of global.asax code

Nov 12th, 2011
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. static readonly Log instance = new Log();
  2.  
  3. SPFarm farm = SPFarm.Local;
  4. Guid traceGuid = farm.TraceSessionGuid;
  5. unit result = NativeMethods.RegisterTraceGuids(ControlCallback, null, ref traceGuid, 0, IntPrt.Zero, null, null, out hTraceReg);
  6. System.Diagnostics.Debug.Assert(result==NativeMethods.ERROR_SUCCESS, "TraceRegister result = " + result.ToString());
Add Comment
Please, Sign In to add comment