public SmsController( ISubscribe subscribe, IUnsubscribe unsubscribe) { _subscribe = subscribe; _unsubscribe = unsubscribe; }
private void Unsubscribe(IUnsubscribe unsubscriber) { try { Logger.DebugFormat("Attempting to unsubscribe subscriber of type [{0}]", unsubscriber.GetType().FullName); unsubscriber.Unsubscribe(); } catch (Exception ex) { Logger.Error(String.Format("Exception was raised while unsubscribing subscriber of type [{0}]", unsubscriber.GetType()), ex); } }