public static BrainstormingEventLogger GetInstance(CloudStorage storage) { if (loggerInstance == null) { lock (syncRoot) { if (loggerInstance == null) { loggerInstance = new BrainstormingEventLogger(storage); ICloudDirectoryEntry targetFolder; try { targetFolder = storage.GetFolder("/UserStudy_Log"); } catch (Exception ex) { targetFolder = storage.CreateFolder("/UserStudy_Log"); } } } } return loggerInstance; }
public static BrainstormingEventLogger GetInstance(CloudStorage storage) { if (loggerInstance == null) { lock (syncRoot) { if (loggerInstance == null) { loggerInstance = new BrainstormingEventLogger(storage); ICloudDirectoryEntry targetFolder; try { targetFolder = storage.GetFolder("/UserStudy_Log"); } catch (Exception ex) { targetFolder = storage.CreateFolder("/UserStudy_Log"); } } } } return(loggerInstance); }