LIBOMV-686 Convert NetworkManager events/delegates to new patterns

* Remove INetworkManager interface (it was not being used for anything)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3182 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2009-10-28 08:01:52 +00:00
parent 89cf6ccad0
commit 95a87c7857
46 changed files with 1453 additions and 1130 deletions

View File

@@ -87,13 +87,14 @@ namespace importprimscript
// Create a handler for the event queue connecting, so we know when
// it is safe to start uploading
AutoResetEvent eventQueueEvent = new AutoResetEvent(false);
NetworkManager.EventQueueRunningCallback eventQueueCallback =
delegate(Simulator simulator)
EventHandler<EventQueueRunningEventArgs> eventQueueCallback =
delegate(object sender, EventQueueRunningEventArgs e)
{
if (simulator == Client.Network.CurrentSim)
if (e.Simulator == Client.Network.CurrentSim)
eventQueueEvent.Set();
};
Client.Network.OnEventQueueRunning += eventQueueCallback;
Client.Network.EventQueueRunning += eventQueueCallback;
int x = Int32.Parse(args[args.Length - 4]);
int y = Int32.Parse(args[args.Length - 3]);
@@ -122,7 +123,7 @@ namespace importprimscript
}
// Don't need this anymore
Client.Network.OnEventQueueRunning -= eventQueueCallback;
Client.Network.EventQueueRunning -= eventQueueCallback;
// Set the root position for the import
RootPosition = Client.Self.SimPosition;