Example #1
0
 protected void RaisePercentCompleted(int i)
 {
     //currentContext.Send(state =>
     //{
     PercentCompleted?.Invoke(i);
     //}, this);
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Code != global::Clarifai.Api.Status.StatusCode.Zero)
            {
                hash ^= Code.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Details.Length != 0)
            {
                hash ^= Details.GetHashCode();
            }
            hash ^= stackTrace_.GetHashCode();
            if (PercentCompleted != 0)
            {
                hash ^= PercentCompleted.GetHashCode();
            }
            if (TimeRemaining != 0)
            {
                hash ^= TimeRemaining.GetHashCode();
            }
            if (ReqId.Length != 0)
            {
                hash ^= ReqId.GetHashCode();
            }
            if (InternalDetails.Length != 0)
            {
                hash ^= InternalDetails.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
 protected static void NotifyPercentCompleted(FileSystemEventArgs e)
 {
     PercentCompleted?.Invoke(e);
 }