private void Provisione(XSynqSession session, System.ServiceModel.Channels.Binding Binding, Uri uri) { PendingsNotifier = new Timer(XSynqSubscriberContextPendingsNotify, null, StaticConfiguration.DocumentPeridicUpdate, Timeout.Infinite); Session = session; Context = new XSynqSubscriberContext(this); Context.PropertyChanged += XSynqSubscriberContextPropertyChanged; InstanceContext = new InstanceContext(Context); Client = new XSynqPublisherClient(InstanceContext, Binding, new EndpointAddress(uri.GetComponents(UriComponents.AbsoluteUri, UriFormat.Unescaped))); }
private void Provisione(XSynqSession session, Uri uri) { PendingsNotifier = new Timer(XSynqSubscriberContextPendingsNotify, null, StaticConfiguration.DocumentPeridicUpdate, Timeout.Infinite); Session = session; Context = new XSynqSubscriberContext(this); Context.PropertyChanged += XSynqSubscriberContextPropertyChanged; InstanceContext = new InstanceContext(Context); Client = new XSynqPublisherClient(InstanceContext, "AgentEndPoint", uri.GetComponents(UriComponents.AbsoluteUri, UriFormat.Unescaped)); }