CCNet.SourceNotifier.Gateways.MailGateway.MailGatewayFactory.CreateGateway C# (CSharp) Method

CreateGateway() public static method

Creates a MailGateway instance.
public static CreateGateway ( System.Net.Mail.MailAddress sender ) : IMailGateway
sender System.Net.Mail.MailAddress
return IMailGateway
		public static IMailGateway CreateGateway(MailAddress sender)
		{
			if (Debug.Instance.IsDebugModeEnabled)
			{
				return new DebugMailGateway(sender, new MailAddress(Debug.Instance.OverrideEmail));
			}

			return new ProductionMailGateway(sender);
		}
	}
MailGatewayFactory