public BluepathStorage(Bluepath.Storage.IExtendedStorage storage, bool eraseContents) : this(storage) { if (eraseContents) { this.Clean(); } }
public CentralizedDiscovery(Bluepath.Services.ServiceUri masterUri, Bluepath.Services.BluepathListener listener) { this.services = new List<ServiceUri>(); this.client = new ServiceReferences.CentralizedDiscoveryServiceClient(masterUri.Binding, masterUri.ToEndpointAddress()); this.listenerUri = listener.CallbackUri; var registerThread = new Thread(() => this.client.Register(this.ConvertToClientServiceUri(this.listenerUri))); registerThread.Start(); }
public BluepathStorage(Bluepath.Storage.IExtendedStorage storage) { this.storage = storage; try { this.storage.Retrieve<string[]>(fileListKey); } catch (ArgumentOutOfRangeException) { this.storage.Store(fileListKey, new string[] { }); } }
private ServiceReferences.ServiceUri ConvertToClientServiceUri(Bluepath.Services.ServiceUri uri) { if (uri == null) { return null; } return new ServiceReferences.ServiceUri() { Address = uri.Address, BindingType = (ServiceReferences.BindingType)((int)uri.BindingType) }; }