void OnPackageSent(AccessPointFrame package) { if (PackageSent != null) { PackageSent(package); } }
public void Log(AccessPointFrame frame) { var serializer = typeof(AccessPointFrame).GetCustomAttributes(typeof(IBinarySerializer), false).First() as IBinarySerializer; Console.WriteLine(serializer.SerializeToString(frame)); }