/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(Project other) { if (other == null) { return(false); } return(Id == other.Id && string.Equals(Identifier, other.Identifier, StringComparison.OrdinalIgnoreCase) && string.Equals(Description, other.Description, StringComparison.OrdinalIgnoreCase) && (Parent != null ? Parent.Equals(other.Parent) : other.Parent == null) && string.Equals(HomePage, other.HomePage, StringComparison.OrdinalIgnoreCase) && CreatedOn == other.CreatedOn && UpdatedOn == other.UpdatedOn && Status == other.Status && IsPublic == other.IsPublic && InheritMembers == other.InheritMembers && (Trackers != null ? Trackers.Equals <ProjectTracker>(other.Trackers) : other.Trackers == null) && (CustomFields != null ? CustomFields.Equals <IssueCustomField>(other.CustomFields) : other.CustomFields == null) && (IssueCategories != null ? IssueCategories.Equals <ProjectIssueCategory>(other.IssueCategories) : other.IssueCategories == null) && (EnabledModules != null ? EnabledModules.Equals <ProjectEnabledModule>(other.EnabledModules) : other.EnabledModules == null) && (TimeEntryActivities != null ? TimeEntryActivities.Equals <ProjectTimeEntryActivity>(other.TimeEntryActivities) : other.TimeEntryActivities == null) && (DefaultAssignee != null ? DefaultAssignee.Equals(other.DefaultAssignee) : other.DefaultAssignee == null) && (DefaultVersion != null ? DefaultVersion.Equals(other.DefaultVersion) : other.DefaultVersion == null)); }
internal static async Task InitFirebaseSdk(Lazy <Task <IJSObjectReference> > initModuleTask) { var initModule = await initModuleTask.Value; int retries = 0; while (retries++ < 5) { try { var initParams = new FirebaseSdkInitParams { FirebaseProjectId = FirebaseProjectId, FirebaseConfig = FirebaseConfig, UseAuthModule = EnabledModules.Contains(FirebaseModule.AUTHENTICATION), UseFirestoreModule = EnabledModules.Contains(FirebaseModule.FIRESTORE), EmulateAuthModule = EnabledModules.Contains(FirebaseModule.AUTHENTICATION_EMULATOR), EmulateFirestoreModule = EnabledModules.Contains(FirebaseModule.FIRESTORE_EMULATOR) }; await initModule.InvokeVoidAsync( "loadFirebaseSdk", JsonSerializer.Serialize(initParams)); return; } catch (Exception e) { Console.WriteLine(e); Console.WriteLine("loadFirebaseSdk retry."); await Task.Delay(200); } } }
public override int GetHashCode() { unchecked { var hashCode = (_projectsService != null ? _projectsService.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (_navigationService != null ? _navigationService.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DetailCommand != null ? DetailCommand.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EditCommand != null ? EditCommand.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Identify != null ? StringComparer.CurrentCulture.GetHashCode(Identify) : 0); hashCode = (hashCode * 397) ^ Id; hashCode = (hashCode * 397) ^ (Name != null ? StringComparer.CurrentCulture.GetHashCode(Name) : 0); hashCode = (hashCode * 397) ^ (Identifier != null ? StringComparer.CurrentCulture.GetHashCode(Identifier) : 0); hashCode = (hashCode * 397) ^ (Description != null ? StringComparer.CurrentCulture.GetHashCode(Description) : 0); hashCode = (hashCode * 397) ^ (Parent != null ? Parent.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HomePage != null ? StringComparer.CurrentCulture.GetHashCode(HomePage) : 0); hashCode = (hashCode * 397) ^ CreatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ UpdatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Status; hashCode = (hashCode * 397) ^ IsPublic.GetHashCode(); hashCode = (hashCode * 397) ^ InheritMembers.GetHashCode(); hashCode = (hashCode * 397) ^ (Trackers != null ? Trackers.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CustomFields != null ? CustomFields.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IssueCategories != null ? IssueCategories.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EnabledModules != null ? EnabledModules.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TimeEntryActivities != null ? TimeEntryActivities.GetHashCode() : 0); return(hashCode); } }
private void DisableModule(IAdModule module) { EnabledModules.Remove(module); DisabledModules.Add(module); _settings.EnabledModules = EnabledModules.Select(x => x.Title).ToList(); AdDetectionSettings.Save(_settings); }
public void AllModulesAreEnabledByDefault() { // arrange EnabledModules modules = new EnabledModules(); // Assert Assert.IsTrue(modules.FancyZones); Assert.IsTrue(modules.ImageResizer); Assert.IsTrue(modules.FileExplorerPreview); Assert.IsTrue(modules.ShortcutGuide); Assert.IsTrue(modules.PowerRename); Assert.IsTrue(modules.KeyboardManager); Assert.IsTrue(modules.PowerLauncher); Assert.IsTrue(modules.ColorPicker); }
/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(Project other) { if (other == null) return false; return ( Id == other.Id && Identifier.Equals(other.Identifier) && Description.Equals(other.Description) && (Parent != null ? Parent.Equals(other.Parent) : other.Parent == null) && (HomePage != null ? HomePage.Equals(other.HomePage) : other.HomePage == null) && CreatedOn == other.CreatedOn && UpdatedOn == other.UpdatedOn && Status == other.Status && IsPublic == other.IsPublic && InheritMembers == other.InheritMembers && (Trackers != null ? Trackers.Equals<ProjectTracker>(other.Trackers) : other.Trackers == null) && (CustomFields != null ? CustomFields.Equals<IssueCustomField>(other.CustomFields) : other.CustomFields == null) && (IssueCategories != null ? IssueCategories.Equals<ProjectIssueCategory>(other.IssueCategories) : other.IssueCategories == null) && (EnabledModules != null ? EnabledModules.Equals<ProjectEnabledModule>(other.EnabledModules) : other.EnabledModules == null) ); }
public override int GetHashCode() { unchecked { var hashCode = (Identifier != null ? Identifier.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Parent != null ? Parent.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HomePage != null ? HomePage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CreatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ UpdatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Status; hashCode = (hashCode * 397) ^ IsPublic.GetHashCode(); hashCode = (hashCode * 397) ^ InheritMembers.GetHashCode(); hashCode = (hashCode * 397) ^ (Trackers != null ? Trackers.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CustomFields != null ? CustomFields.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IssueCategories != null ? IssueCategories.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EnabledModules != null ? EnabledModules.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TimeEntryActivities != null ? TimeEntryActivities.GetHashCode() : 0); return(hashCode); } }