/// <summary> /// CopyTo /// </summary> public static PinkoDataFeedIdentifier CopyTo(this PinkoDataFeedIdentifier src, PinkoDataFeedIdentifier dest) { dest.ClientCtx = src.ClientCtx; dest.ClientId = src.ClientId; dest.MaketEnvId = src.MaketEnvId; dest.SignalRId = src.SignalRId; dest.SubscribtionId = src.SubscribtionId; dest.WebRoleId = src.WebRoleId; dest.PreviousWebRoleId = src.PreviousWebRoleId; dest.PreviousSignalRId = src.PreviousSignalRId; return dest; }
/// <summary> /// Checks values are the same by comparing internal values. /// </summary> /// <param name="dest"> </param> /// <param name="src"></param> /// <returns> /// True: they are equal /// False: they not are equal /// </returns> public static bool IsEqual(this PinkoDataFeedIdentifier dest, PinkoDataFeedIdentifier src) { if (dest == null && null == src) return true; if (dest == null || null == src) return false; return dest.ClientId.Equals(src.ClientId) && dest.MaketEnvId.Equals(src.MaketEnvId) && dest.SignalRId.Equals(src.SignalRId) && dest.WebRoleId.Equals(src.WebRoleId) && dest.SubscribtionId.Equals(src.SubscribtionId) ; }
/// <summary> /// Clone partial fields /// </summary> public static PinkoDataFeedIdentifier PartialClone(this PinkoDataFeedIdentifier src, PinkoDataFeedIdentifier srcEx) { var newEx = src.DeepClone(); newEx.SignalRId = srcEx.SignalRId; newEx.WebRoleId = srcEx.WebRoleId; newEx.PreviousWebRoleId = srcEx.PreviousWebRoleId; newEx.PreviousSignalRId = srcEx.PreviousSignalRId; return newEx; }