Exemple #1
0
 public bool Equals(IInjectionMessage other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(InjectionType.Equals(other.InjectionType) &&
            (InjectedObject?.Equals(other.InjectedObject) ?? false) &&
            InjectionDetectionTime.Equals(other.InjectionDetectionTime));
 }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(-590645308
                * (int)InjectionType
                * InjectionDetectionTime.GetHashCode()
                * (InjectedObject?.GetHashCode() ?? 1));
     }
 }
Exemple #3
0
 public override string ToString()
 {
     return($"{nameof(InjectionType)} = \"{InjectionType}\", " +
            $"{nameof(InjectionDetectionTime)} = \"{InjectionDetectionTime}\", " +
            $"Injected object type = \"{InjectedObject?.GetType().Name ?? "null"}");
 }
Exemple #4
0
 public InjectionCommand(InjectedObject value)
 {
     this.Value = value;
 }