Banshee.UbuntuOneMusicStore.UbuntuOneMusicStoreSource.OnCommandLineArgument C# (CSharp) Method

OnCommandLineArgument() private method

private OnCommandLineArgument ( string uri, object value, bool isFile ) : void
uri string
value object
isFile bool
return void
        private void OnCommandLineArgument (string uri, object value, bool isFile)
        {
            if (!isFile || String.IsNullOrEmpty (uri)) {
                return;
            }

            Log.Debug ("U1MS: URI requested: ", uri);
            // Handle u1ms:// URIs
            if (uri.StartsWith ("u1ms://")) {
                string http_url = uri.Replace ("u1ms://", "http://");
                custom_view.Store.LoadStoreLink (http_url);
                ServiceManager.SourceManager.SetActiveSource (this);
            }
        }