Exemplo n.º 1
0
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
            #endregion

            #region public methods
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
            public async Task CheckConsistencyOfTypeAsync(ACodigoCCheckType type)
            {
                switch (type)
                {
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
                case ACodigoCCheckType.Comunidad:
                    ComunidadCheckConsistencyAsync().Forget().ConfigureAwait(false);
                    break;

                case ACodigoCCheckType.Fincas:
                    FincaCheckConsistencyAsync().Forget().ConfigureAwait(false);
                    break;

                case ACodigoCCheckType.Pptos:
                    PptoCheckConsistencyAsync().Forget().ConfigureAwait(false);
                    break;

                case ACodigoCCheckType.Asientos:
                    AsientoCheckConsistencyAsync().Forget().ConfigureAwait(false);
                    break;

                default: return;

#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
                }
            }
Exemplo n.º 2
0
 public AutoCodigoConsistencyChecker(AutoCodigoData data, ACodigoCCheckType type)
 {
     this.Data           = data;
     this.CalculatedMaxs = new ConcurrentDictionary <long, int>();
     this.OwnersCdades   = new ConcurrentDictionary <ACodigoCCheckType, IEnumerable <int> >();
     this.CCheckType     = type;
 }