/// <summary> /// You are using ZContext.Current! /// </summary> public ZActor(ZAction0 action, params object[] args) : this(default(string), action, args) { var rnd0 = new byte[8]; using (var rng = new System.Security.Cryptography.RNGCryptoServiceProvider()) rng.GetNonZeroBytes(rnd0); this.Endpoint = string.Format("inproc://{0}", ZContext.Encoding.GetString(rnd0)); }
/// <summary> /// You are using ZContext.Current! /// </summary> public ZActor(string endpoint, ZAction0 action, params object[] args) { Context = ZContext.Current; Endpoint = endpoint; Action0 = action; Arguments = args; }
/// <summary> /// You are using ZContext.Current! /// </summary> public ZActor(ZAction0 action, params object[] args) : this(default(string), action, args) { var rnd0 = new byte[8]; using (var rng = new System.Security.Cryptography.RNGCryptoServiceProvider()) rng.GetNonZeroBytes(rnd0); Endpoint = $"inproc://{ZContext.Encoding.GetString(rnd0)}"; }
/// <summary> /// You are using ZContext.Current! /// </summary> public ZActor(ZAction0 action, params object[] args) : this(default(string), action, args) { var rnd0 = new byte[8]; new System.Security.Cryptography.RNGCryptoServiceProvider().GetNonZeroBytes(rnd0); this.Endpoint = string.Format("inproc://{0}", ZContext.Encoding.GetString(rnd0)); }
/// <summary> /// You are using ZContext.Current! /// </summary> public ZActor(string endpoint, ZAction0 action, params object[] args) : base() { this.Context = ZContext.Current; this.Endpoint = endpoint; this.Action0 = action; this.Arguments = args; }