Ejemplo n.º 1
0
 /// <summary>
 /// Generates a JSON encoded string representing the content of the POST request
 /// </summary>
 /// <returns>
 /// A JSON encoded string representing the content of the POST request
 /// </returns>
 public string ToPostRequestContent()
 {
     return("{ \"keyfobNum\": \"" + SnaggerId.ToString() + "\", \"startTimeStamp\": \"" + OccurredOn + "\", \"endTimeStamp\": \"" + OccurredOn.Add(TimeSpan.FromMilliseconds(TimeInMs)) + "\" }");
 }
Ejemplo n.º 2
0
 protected bool Equals(ProductPriceChanged other) =>
 base.Equals(other) && Price == other.Price && OccurredOn.Equals(other.OccurredOn) && Version == other.Version;
Ejemplo n.º 3
0
 protected bool Equals(ProductNameChanged other) =>
 base.Equals(other) && Name == other.Name && OccurredOn.Equals(other.OccurredOn) && Version == other.Version;
Ejemplo n.º 4
0
 protected bool Equals(ProductDescriptionChanged other) =>
 base.Equals(other) && Description == other.Description && OccurredOn.Equals(other.OccurredOn) && Version == other.Version;
Ejemplo n.º 5
0
 protected bool Equals(ProductDefined other) =>
 base.Equals(other) && Description == other.Description && Name == other.Name && OccurredOn.Equals(other.OccurredOn) && Price == other.Price && Version == other.Version;
Ejemplo n.º 6
0
 public override string ToString()
 {
     return(this.GetType().Name + " event occurred at " + OccurredOn.ToString("HH:mm:ss.fff") + " in call context " + CallContext.FullCallId);
 }