Inheritance: System.EventArgs
Exemplo n.º 1
0
    private static void OnEntryGroupChanged (object o, EntryGroupStateArgs args)
    {
        Console.WriteLine ("Entry group status: " + args.State);
        if (args.State == EntryGroupState.Established) {
            DomainBrowser browser = new DomainBrowser (client);
            objects.Add (browser);

            browser.DomainAdded += OnDomainAdded;
        }
    }
Exemplo n.º 2
0
        private void OnEntryGroupStateChanged(object o, AV.EntryGroupStateArgs args)
        {
            switch (args.State)
            {
            case AV.EntryGroupState.Collision:
                if (!OnResponse(AV.ErrorCode.Collision))
                {
                    throw new ApplicationException();
                }
                break;

            case AV.EntryGroupState.Failure:
                if (!OnResponse(AV.ErrorCode.Failure))
                {
                    throw new ApplicationException();
                }
                break;

            case AV.EntryGroupState.Established:
                OnResponse(AV.ErrorCode.Ok);
                break;
            }
        }
Exemplo n.º 3
0
                private void OnEntryGroupStateChanged (object sender, EntryGroupStateArgs args)
                {
                        Logger.Log.Debug ("Zeroconf: Service state changed: {0}", args.State);

                        if (args.State == EntryGroupState.Collision)
                                HandleCollision ();
                }