コード例 #1
0
ファイル: NativeSession.cs プロジェクト: Dkrinker/torshify
        public ISession SetConnectionRules(ConnectionRule connectionRule)
        {
            AssertHandle();

            lock (Spotify.Mutex)
            {
                Error error = Spotify.sp_session_set_connection_rules(Handle, connectionRule);

                if (error != Error.OK)
                {
                    throw new TorshifyException(error.GetMessage(), error);
                }
            }

            return(this);
        }
コード例 #2
0
 internal static extern Error sp_session_set_connection_rules(IntPtr sessionPtr, ConnectionRule connectionRule);
コード例 #3
0
ファイル: Spotify.Session.cs プロジェクト: Dkrinker/torshify
 internal static extern Error sp_session_set_connection_rules(IntPtr sessionPtr, ConnectionRule connectionRule);
コード例 #4
0
ファイル: NativeSession.cs プロジェクト: sekotin/torshify
        public ISession SetConnectionRules(ConnectionRule connectionRule)
        {
            AssertHandle();

            lock (Spotify.Mutex)
            {
                Spotify.sp_session_set_connection_rules(Handle, connectionRule);
            }

            return this;
        }
コード例 #5
0
ファイル: NativeSession.cs プロジェクト: Dkrinker/torshify
        public ISession SetConnectionRules(ConnectionRule connectionRule)
        {
            AssertHandle();

            lock (Spotify.Mutex)
            {
                Error error = Spotify.sp_session_set_connection_rules(Handle, connectionRule);

                if (error != Error.OK)
                {
                    throw new TorshifyException(error.GetMessage(), error);
                }
            }

            return this;
        }