public void Delete() { try { this.Exit(0, string.Empty); this.mHandlerInstance.Destroy(); this.mHandlerInstance = null; NpCloudManager.DeleteInstance(); } catch (NpCloudException errorData) { this.SetErrorData(errorData); this.Exit(this.mErrorCode, this.mErrorMsg); } catch (Exception errorData2) { this.SetErrorData(errorData2); this.Exit(this.mErrorCode, this.mErrorMsg); } }
public NpCloud(INpCloud listener, string hashKey = "") { try { this.mListener = listener; this.mHashKey = hashKey; if (this.ManagerInstance != null) { NpCloudManager.DeleteInstance(); } NpCloudManager.CreateInstance(this); this.mHandlerInstance = NpCloudHandlerSystem.CreateInstance(this); } catch (NpCloudException errorData) { this.SetErrorData(errorData); this.Exit(this.mErrorCode, this.mErrorMsg); } catch (Exception errorData2) { this.SetErrorData(errorData2); this.Exit(this.mErrorCode, this.mErrorMsg); } }