/// <summary> /// Subscribe to receive 'Mobile app notifications' on wash steps being applied to your registered <see cref="IVehicle"/>. /// </summary> public static IContainer AddMobileAppNotifications(this IContainer container, string username) { IWashStepNotifier notifier = container.GetService <IWashStepNotifier>(); notifier.Subscribe(new MobileAppClient(username)); return(container); }
/// <summary> /// Subscribe to receive 'SMS notifications' on wash steps being applied to your registered <see cref="IVehicle"/>. /// </summary> public static IContainer AddSmsNotifications(this IContainer container, string phoneNumber) { IWashStepNotifier notifier = container.GetService <IWashStepNotifier>(); notifier.Subscribe(new SmsClient(phoneNumber)); return(container); }