Пример #1
0
		/// <summary>Creates an pre filled instance of this type.</summary>
		public static CsspFeedback Get(ICsspFeedback feedback)
		{
			var rv = new CsspFeedback();
			feedback.CopyTo(rv);
			return rv;
		}
Пример #2
0
		/// <summary>Sends a log including an info packet.</summary>
		public Task<CssPacket> Feedback(ICsspFeedback feedback)
		{
			var packet = CsspIdentity.Get();
			packet.InnerPackets = new List<CssPacket>
			{
				feedback is CsspFeedback ? (CsspFeedback) feedback : CsspFeedback.Get(feedback)
			};
			return TransmitAndProcess(packet);
		}