private static ONSFactoryProperty GetOnsFactoryProperty(AliyunMessageQueueFactoryOptions options) { var factoryInfo = new ONSFactoryProperty(); factoryInfo.setFactoryProperty(factoryInfo.getPublishTopicsName(), "null"); factoryInfo.setFactoryProperty(factoryInfo.getAccessKeyName(), options.AccessKey); factoryInfo.setFactoryProperty(factoryInfo.getSecretKeyName(), options.SecretKey); return(factoryInfo); }
public AliyunMessageQueueFactory(AliyunMessageQueueFactoryOptions options) { _factory = new ONSFactory(); _factoryInstance = _factory.getInstance(); _factoryProperty = GetOnsFactoryProperty(options); }