/// <summary> /// Remove peer from group, if it's a member /// </summary> /// <param name="group"></param> /// <param name="peer"></param> private void RemovePeerFromGroup(ZyreGroup group, ZyrePeer peer) { group.Leave(peer); }
// /// <summary> // /// Return a string showing the class name and method of method calling the method calling this method, used for reporting errors // /// </summary> // /// <returns>the name of the calling method</returns> // private static string MethodNameLevelAbove() // { // var stackTrace = new System.Diagnostics.StackTrace(new Exception(), false); // var stackFrame = stackTrace.GetFrames()[2]; // var mb = stackFrame.GetMethod(); // return mb.ReflectedType.Name + ":" + mb.Name + "()"; // } /// <summary> /// Remove peer from group, if it's a member /// </summary> /// <param name="group"></param> /// <param name="peer"></param> private void RemovePeerFromGroup(ZyreGroup group, ZyrePeer peer) { group.Leave(peer); }