mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* CustomPeerResolverService.cs, LocalPeerResolverService.cs, ICustomPeerResolverContract.cs : add local machine peer resolver implementation that can work across appdomains (based on dispatching peer resolver that communicates with a ServiceHost which is either locally started or running as a different process). * System.ServiceModel.dll.sources: Added new custom peer resolver files. svn path=/trunk/mcs/; revision=137504
33 lines
852 B
C#
Executable File
33 lines
852 B
C#
Executable File
using System;
|
|
using System.Runtime.Serialization;
|
|
using System.ServiceModel;
|
|
using System.ServiceModel.PeerResolvers;
|
|
using System.ServiceModel.Description;
|
|
|
|
namespace System.ServiceModel.PeerResolvers
|
|
{
|
|
[DataContract (Namespace = "http://mono-project.com/ns/2008/07/peer-resolver")]
|
|
class PeerServiceSettingsInfo
|
|
{
|
|
[DataMember]
|
|
public TimeSpan RefreshInterval { get; set; }
|
|
[DataMember]
|
|
public TimeSpan CleanupInterval { get; set; }
|
|
[DataMember]
|
|
public bool ControlMeshShape { get; set; }
|
|
}
|
|
|
|
[ServiceContract]
|
|
interface ICustomPeerResolverContract : IPeerResolverContract
|
|
{
|
|
[OperationContract]
|
|
PeerServiceSettingsInfo GetCustomServiceSettings ();
|
|
[OperationContract]
|
|
void SetCustomServiceSettings (PeerServiceSettingsInfo info);
|
|
}
|
|
|
|
interface ICustomPeerResolverClient : ICustomPeerResolverContract, IClientChannel
|
|
{
|
|
}
|
|
}
|