Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (ServiceAccountId.Length != 0)
            {
                hash ^= ServiceAccountId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (KeyId.Length != 0)
            {
                hash ^= KeyId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Entered for '{0}' and '{1}'", ServiceAccountId, Consumer));
            int myServiceAccountId = ServiceAccountId.Get(context);

            devlog.Debug(string.Format("Gor for '{0}'", myServiceAccountId));
            var consumer = ConsumerRepository.GetConsumerByServiceAccountId(myServiceAccountId);

            Consumer.Set(context, consumer.Value);
        }
Beispiel #3
0
        protected override void DoExecute(System.Activities.CodeActivityContext context)
        {
            devlog.Debug(string.Format("Called on '{0}'and  '{1}'", AdapterAppointment, ServiceAccountId));
            var myAdapterAppointment  = AdapterAppointment.Get(context);
            var myServiceAccountId    = ServiceAccountId.Get(context);
            var myOriginalAppointment = OriginalCalDAVEvent.Get(context);

            devlog.Debug(string.Format("Got '{0}' and  '{1}' and '{2}'", myAdapterAppointment, myServiceAccountId, myOriginalAppointment));
            var Appointment = Repository.ConvertFromDTO(myAdapterAppointment, myServiceAccountId, myOriginalAppointment);

            CalDAVEvent.Set(context, Appointment);
        }
Beispiel #4
0
        protected override void DoExecute(CodeActivityContext context)
        {
            devlog.Debug(string.Format("Called on '{0}'and  '{1}'", AdapterAppointment, ServiceAccountId));
            var myAdapterAppointment          = AdapterAppointment.Get(context);
            var myServiceAccountId            = ServiceAccountId.Get(context);
            var myOriginalExchangeAppointment = OriginalExchangeAppointment.Get(context);

            devlog.Debug(string.Format("Got '{0}' and  '{1}' and '{2}'", myAdapterAppointment, myServiceAccountId, myOriginalExchangeAppointment));
            var exchangeAppointment = ExchangeRepository.ConvertFromDTO(myAdapterAppointment, myServiceAccountId, myOriginalExchangeAppointment);

            ExchangeAppointment.Set(context, exchangeAppointment);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (subjectCase_ == SubjectOneofCase.UserAccountId)
            {
                hash ^= UserAccountId.GetHashCode();
            }
            if (subjectCase_ == SubjectOneofCase.ServiceAccountId)
            {
                hash ^= ServiceAccountId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (KeyAlgorithm != global::Yandex.Cloud.Iam.V1.Key.Types.Algorithm.Unspecified)
            {
                hash ^= KeyAlgorithm.GetHashCode();
            }
            if (PublicKey.Length != 0)
            {
                hash ^= PublicKey.GetHashCode();
            }
            hash ^= (int)subjectCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }