public HostInstanceManager(ServiceUnity unity)
 {
     Unity          = unity;
     GlobaInstances = new Dictionary <ServiceProvider, object>();
     UserInstances  = new Dictionary <ServiceUser, Dictionary <ServiceProvider, object> >();
     Builder        = new InstanceTypeBuilder(OperationMode.Server);
 }
Example #2
0
 public ServiceClient(IPEndPoint remoteEndPoint)
 {
     ChannelBuffer               = new Dictionary <ServiceChannel, object>();
     Client                      = new Communication.Client();
     Client.ConnectCompleted    += Connect;
     Client.PreviewReceive      += PreviewReceive;
     Client.ReceiveCompleted    += Receive;
     Client.DisconnectCompleted += Disconnect;
     RemoteEndPoint              = remoteEndPoint;
     Connected                   = false;
     IOManager                   = new MessageIOManager();
     DataFormatter               = new DataFormatter();
     Security                    = new SecurityManager();
     Unity   = new ServiceUnity();
     Builder = new InstanceTypeBuilder(OperationMode.Client);
 }