Beispiel #1
0
 /// <summary>
 /// Wraps the current SFX Service into one that logs the activity.
 /// </summary>
 public static void EnableSFXLogging()
 {
     // We don't wrap it again if it is already wrapped
     if (GetSFXService() as LoggedSFXService == null)
     {
         SFXService loggedService = new LoggedSFXService(GetSFXService());
         ProvideSFXService(loggedService);
     }
 }
Beispiel #2
0
    /// <summary>
    /// Unwraps the current Logged SFX Service.
    /// </summary>
    public static void DisableSFXLogging()
    {
        // Don't unwrap if it's not a Logged one
        LoggedSFXService service = GetSFXService() as LoggedSFXService;

        if (service != null)
        {
            ProvideSFXService(service.WrappedService);
        }
    }