protected override void Save(IPropertyBag propertyBag) { propertyBag.WriteAdapterCustomProperty("LoopBack", LoopBack); propertyBag.WriteAdapterCustomProperty("ResponseContentType", ResponseContentType); propertyBag.WriteAdapterCustomProperty("ReturnCorrelationHandle", ReturnCorrelationHandle); propertyBag.WriteAdapterCustomProperty("SuspendFailedRequests", SuspendRequestMessageOnFailure); propertyBag.WriteAdapterCustomProperty("UseSSO", UseSSO); }
protected override void Save(IPropertyBag propertyBag) { base.Save(propertyBag); propertyBag.WriteAdapterCustomProperty(nameof(AllowCacheOnWrite), AllowCacheOnWrite); propertyBag.WriteAdapterCustomProperty("CopyMode", Convert.ToUInt32(Mode, NumberFormatInfo.InvariantInfo)); propertyBag.WriteAdapterCustomProperty(nameof(FileName), FileName); propertyBag.WriteAdapterCustomProperty(nameof(UseTempFileOnWrite), UseTempFileOnWrite); }
protected override void Save(IPropertyBag propertyBag) { base.Save(propertyBag); propertyBag.WriteAdapterCustomProperty("AllowCacheOnWrite", AllowCacheOnWrite); propertyBag.WriteAdapterCustomProperty("CopyMode", Convert.ToUInt32(Mode)); propertyBag.WriteAdapterCustomProperty("FileName", FileName); propertyBag.WriteAdapterCustomProperty("UseTempFileOnWrite", UseTempFileOnWrite); }
protected override void Save(IPropertyBag propertyBag) { if (NetworkCredentials.UserName.IsNullOrEmpty()) { return; } propertyBag.WriteAdapterCustomProperty("Username", NetworkCredentials.UserName); propertyBag.WriteAdapterCustomProperty("Password", NetworkCredentials.Password); }
protected override void Save(IPropertyBag propertyBag) { base.Save(propertyBag); propertyBag.WriteAdapterCustomProperty("BatchSize", Convert.ToUInt32(BatchMessagesCount)); propertyBag.WriteAdapterCustomProperty("BatchSizeInBytes", BatchSize); propertyBag.WriteAdapterCustomProperty(nameof(FileMask), FileMask); propertyBag.WriteAdapterCustomProperty("FileNetFailRetryCount", RetryCountOnNetworkFailure); propertyBag.WriteAdapterCustomProperty("FileNetFailRetryInt", Convert.ToUInt32(RetryIntervalOnNetworkFailure.TotalMinutes)); propertyBag.WriteAdapterCustomProperty(nameof(PollingInterval), Convert.ToUInt32(PollingInterval.TotalMilliseconds)); propertyBag.WriteAdapterCustomProperty("RemoveReceivedFileDelay", Convert.ToUInt32(FileRemovingSettings.RetryInterval.TotalMilliseconds)); propertyBag.WriteAdapterCustomProperty("RemoveReceivedFileMaxInterval", Convert.ToUInt32(FileRemovingSettings.MaxRetryInterval.TotalMilliseconds)); propertyBag.WriteAdapterCustomProperty("RemoveReceivedFileRetryCount", FileRemovingSettings.RetryCount); propertyBag.WriteAdapterCustomProperty(nameof(RenameReceivedFiles), RenameReceivedFiles); }
protected override void Save(IPropertyBag propertyBag) { Uri = GetAddress(); var config = Serialize(); propertyBag.WriteAdapterCustomProperty("AdapterConfig", config); }
protected override void Save(IPropertyBag propertyBag) { propertyBag.WriteAdapterCustomProperty(nameof(EnableChunkedEncoding), EnableChunkedEncoding); propertyBag.WriteAdapterCustomProperty(nameof(RequestTimeout), (int)RequestTimeout.TotalSeconds); propertyBag.WriteAdapterCustomProperty(nameof(MaxRedirects), MaxRedirects); propertyBag.WriteAdapterCustomProperty(nameof(ContentType), ContentType); propertyBag.WriteAdapterCustomProperty(nameof(UseHandlerProxySettings), UseHandlerProxySettings); if (!UseHandlerProxySettings) { propertyBag.WriteAdapterCustomProperty(nameof(UseProxy), UseProxy); propertyBag.WriteAdapterCustomProperty(nameof(ProxyName), ProxyName); propertyBag.WriteAdapterCustomProperty(nameof(ProxyPort), ProxyPort); propertyBag.WriteAdapterCustomProperty("ProxyUsername", ProxyUserName); propertyBag.WriteAdapterCustomProperty(nameof(ProxyPassword), ProxyPassword); } propertyBag.WriteAdapterCustomProperty(nameof(AuthenticationScheme), AuthenticationScheme.ToString()); propertyBag.WriteAdapterCustomProperty("Username", UserName); propertyBag.WriteAdapterCustomProperty(nameof(Password), Password); propertyBag.WriteAdapterCustomProperty(nameof(UseSSO), UseSSO); propertyBag.WriteAdapterCustomProperty(nameof(AffiliateApplicationName), AffiliateApplicationName); propertyBag.WriteAdapterCustomProperty(nameof(Certificate), Certificate); }
protected override void Save(IPropertyBag propertyBag) { propertyBag.WriteAdapterCustomProperty("EnableChunkedEncoding", EnableChunkedEncoding); propertyBag.WriteAdapterCustomProperty("RequestTimeout", (int)RequestTimeout.TotalSeconds); propertyBag.WriteAdapterCustomProperty("MaxRedirects", MaxRedirects); propertyBag.WriteAdapterCustomProperty("ContentType", ContentType); propertyBag.WriteAdapterCustomProperty("UseHandlerProxySettings", UseHandlerProxySettings); if (!UseHandlerProxySettings) { propertyBag.WriteAdapterCustomProperty("UseProxy", UseProxy); propertyBag.WriteAdapterCustomProperty("ProxyName", ProxyName); propertyBag.WriteAdapterCustomProperty("ProxyPort", ProxyPort); propertyBag.WriteAdapterCustomProperty("ProxyUsername", ProxyUserName); propertyBag.WriteAdapterCustomProperty("ProxyPassword", ProxyPassword); } propertyBag.WriteAdapterCustomProperty("AuthenticationScheme", AuthenticationScheme.ToString()); propertyBag.WriteAdapterCustomProperty("Username", UserName); propertyBag.WriteAdapterCustomProperty("Password", Password); propertyBag.WriteAdapterCustomProperty("UseSSO", UseSSO); propertyBag.WriteAdapterCustomProperty("AffiliateApplicationName", AffiliateApplicationName); propertyBag.WriteAdapterCustomProperty("Certificate", Certificate); }