public static SecureMessage Instance(PNConfiguration pubnubConfig, IJsonPluggableLibrary jsonPluggableLibrary) { secureMessage = new SecureMessage(); secureMessage.config = pubnubConfig; secureMessage.jsonLib = jsonPluggableLibrary; return(secureMessage); }
public static SecureMessage Instance(PNConfiguration pubnubConfig, IJsonPluggableLibrary jsonPluggableLibrary, IPubnubLog log) { SecureMessage secureMessage = new SecureMessage(); secureMessage.config = pubnubConfig; secureMessage.jsonLib = jsonPluggableLibrary; secureMessage.pubnubLog = log; return(secureMessage); }