private void OnConnectionEstablised(object sender, WampSessionCreatedEventArgs e) { _isConnected = true; CheckChannelSubscriptions(); Logger.Debug("Connection established to Poloniex exchange monitor"); }
private static void ConnectionEstablished(object sender, WampSessionCreatedEventArgs e) { WelcomeDetails details = e.WelcomeDetails; Console.WriteLine("connected session with ID " + e.SessionId); Console.WriteLine($"authenticated using method '{details.AuthenticationMethod}' and provider '{details.AuthenticationProvider}'"); Console.WriteLine($"authenticated with authid '{details.AuthenticationId}' and authrole '{details.AuthenticationRole}'"); }
protected virtual void OnConnectionEstablished(WampSessionCreatedEventArgs e) { EventHandler <WampSessionCreatedEventArgs> handler = ConnectionEstablished; if (handler != null) { handler(this, e); } }
private static void ConnectionEstablished(object sender, WampSessionCreatedEventArgs e) { IDictionary <string, object> details = e.WelcomeDetails.OriginalValue.Deserialize <IDictionary <string, object> >(); Console.WriteLine("connected session with ID " + e.SessionId); Console.WriteLine("authenticated using method '" + details["authmethod"] + "' and provider '" + details["authprovider"] + "'"); Console.WriteLine("authenticated with authid '" + details["authid"] + "' and authrole '" + details["authrole"] + "'"); }
private void OnSessionCreated(object sender, WampSessionCreatedEventArgs e) { lock (mLock) { IWampSessionTerminator terminator = e.Terminator; WelcomeDetails welcomeDetails = e.WelcomeDetails; mSessionIdToDetails = mSessionIdToDetails.SetItem(e.SessionId, new SessionDetails(e.SessionId, e.WelcomeDetails, e.Terminator)); mAuthIdToTerminator = RecalculateAuthenticationDetails(mAuthIdToTerminator, welcomeDetails?.AuthenticationId, terminator); mAuthRoleToTerminator = RecalculateAuthenticationDetails(mAuthRoleToTerminator, welcomeDetails?.AuthenticationRole, terminator); } }
private void OnSessionCreated(object sender, WampSessionCreatedEventArgs e) { WampSessionDetails sessionDetails = new WampSessionDetails() { Realm = mRealm.Name, Session = e.SessionId, AuthMethod = e.WelcomeDetails.AuthenticationMethod ?? "anonymous", TransportDetails = e.HelloDetails.TransportDetails }; ImmutableInterlocked.TryAdd(ref mSessionIdToDetails, e.SessionId, sessionDetails); mSubscriber.OnJoin(sessionDetails); }
private static void OnConnectionEstablished(object sender, WampSessionCreatedEventArgs args) { Debug.WriteLine("connected session with ID " + args.SessionId); dynamic details = args.WelcomeDetails.OriginalValue.Deserialize <dynamic>(); string authmethod = details.authmethod, authprovider = details.authprovider, authid = details.authid, authrole = details.authrole; Debug.WriteLine("authenticated using method '{0}' and provider '{1}'", authmethod, authprovider); Debug.WriteLine("authenticated with authid '{0}' and authrole '{1}'", authid, authrole); }
public static async Task <ChannelWithExtraData> GetChannel(this WampPlayground playground) { const string realmName = "realm1"; var channel = playground.CreateNewChannel(realmName); WampSessionCreatedEventArgs eventArgs = null; channel.RealmProxy.Monitor.ConnectionEstablished += (x, y) => { eventArgs = y; }; await channel.Open(); ChannelWithExtraData result = new ChannelWithExtraData(channel, eventArgs); return(result); }
static void SessionCreated(object sender, WampSessionCreatedEventArgs e) { }
private static void SessionCreated(object sender, WampSessionCreatedEventArgs e) { Log.LogVerbose(nameof(WampRouter), "A new wamp client is connected"); }
private void OnConnectionEstablished(object sender, WampSessionCreatedEventArgs e) { mDisconnectionTaskCompletionSource = new TaskCompletionSource <object>(); mDisconnectionWaitHandle = new ManualResetEvent(false); }
protected virtual void OnConnectionEstablished(WampSessionCreatedEventArgs e) { ConnectionEstablished?.Invoke(this, e); }
private static void Realm_SessionCreated(object sender, WampSessionCreatedEventArgs e) { Console.Out.WriteLine(JsonConvert.SerializeObject(e)); }
private void OnConnectionEstablished(object sender, WampSessionCreatedEventArgs e) { IsConnected = true; _sessionID = e.SessionId; }
public ChannelWithExtraData(IWampChannel channel, WampSessionCreatedEventArgs eventArgs) { Channel = channel; SessionId = eventArgs.SessionId; Details = eventArgs.WelcomeDetails; }