コード例 #1
0
 /// <summary>
 /// Creates a new local peer with can locally execute the given RPC methods,
 /// using the given options by default.
 /// </summary>
 public RpcPeer(IEnumerable <Type> methods, RpcPeerSettings settings)
 {
     this.methods         = methods.ToList();
     Settings             = settings;
     Serializer.Instance  = Settings.Serializer;
     Logging.Log.Instance = Settings.Logger;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new RPC client-side endpoint with the given <see cref="ServerUrl"/>,
 /// local-side RPC methods (i.e. the methods which are executable on this client),
 /// authentication method, and other settings.
 /// </summary>
 public RpcClient(string serverUrl, IEnumerable <Type> localMethods, IRpcClientAuth auth,
                  RpcPeerSettings settings) : base(localMethods, settings)
 {
     ServerUrl = serverUrl;
     this.auth = auth;
 }