Network Metadata Provider
Last updated
Was this helpful?
Was this helpful?
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
<serviceProviders>
...
<add type="SanteDB.Core.Services.Impl.DefaultNetworkInformationService, SanteDB.Core.Api, Version=3.0.1980.0, Culture=neutral, PublicKeyToken=null" />
...
</serviceProviders>/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyNetworkInformationService : SanteDB.Core.Services.INetworkInformationService {
public String ServiceName => "My own INetworkInformationService service";
/// <summary>
/// Fired when the network status changes
/// </summary>
public event EventHandler NetworkStatusChanged;
/// <summary>
/// Gets whether the network is available
/// </summary>
public Boolean IsNetworkAvailable {
get;
}
/// <summary>
/// Gets whether the network is connected.
/// </summary>
public Boolean IsNetworkConnected {
get;
}
/// <summary>
/// Returns true if the network is WIFI
/// </summary>
public Boolean IsNetworkWifi {
get;
}
public IEnumerable<NetworkInterfaceInfo> GetInterfaces(){
throw new System.NotImplementedException();
}
/// <summary>
/// Pings the specified host
/// </summary>
public Int64 Ping(String hostName){
throw new System.NotImplementedException();
}
/// <summary>
/// Perform a DNS lookup
/// </summary>
public String Nslookup(String address){
throw new System.NotImplementedException();
}
public String GetHostName(){
throw new System.NotImplementedException();
}
public String GetMachineName(){
throw new System.NotImplementedException();
}
}