DiscoveryClient.cs :  » 2.6.4-mono-.net-core » System.ServiceModel » System » ServiceModel » Discovery » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » 2.6.4 mono .net core » System.ServiceModel 
System.ServiceModel » System » ServiceModel » Discovery » DiscoveryClient.cs
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;

namespace System.ServiceModel.Discovery{
  [MonoTODO]
  public sealed class DiscoveryClient : ICommunicationObject, IDisposable
  {
    public DiscoveryClient ()
    {
    }

    public DiscoveryClient (DiscoveryEndpoint discoveryEndpoint)
    {
    }

    public DiscoveryClient (string endpointConfigurationName)
    {
    }

    public ChannelFactory ChannelFactory { get; private set; }
    public ClientCredentials ClientCredentials { get; private set; }
    public ServiceEndpoint Endpoint { get; private set; }
    public IClientChannel InnerChannel { get; private set; }

    CommunicationState ICommunicationObject.State {
      get { return InnerChannel.State; }
    }

    public event EventHandler<FindCompletedEventArgs> FindCompleted;
    public event EventHandler<FindProgressChangedEventArgs> FindProgressChanged;
    public event EventHandler<AnnouncementEventArgs> ProxyAvailable;
    public event EventHandler<ResolveCompletedEventArgs> ResolveCompleted;

    event EventHandler ICommunicationObject.Closed {
      add { InnerChannel.Closed += value; }
      remove { InnerChannel.Closed -= value; }
    }
    event EventHandler ICommunicationObject.Closing {
      add { InnerChannel.Closing += value; }
      remove { InnerChannel.Closing -= value; }
    }
    event EventHandler ICommunicationObject.Faulted {
      add { InnerChannel.Faulted += value; }
      remove { InnerChannel.Faulted -= value; }
    }
    event EventHandler ICommunicationObject.Opened {
      add { InnerChannel.Opened += value; }
      remove { InnerChannel.Opened -= value; }
    }
    event EventHandler ICommunicationObject.Opening {
      add { InnerChannel.Opening += value; }
      remove { InnerChannel.Opening -= value; }
    }

    public void CancelAsync (object userState)
    {
      throw new NotImplementedException ();
    }

    public void Close ()
    {
      throw new NotImplementedException ();
    }

    public FindResponse Find (FindCriteria criteria)
    {
      throw new NotImplementedException ();
    }

    public void FindAsync (FindCriteria criteria)
    {
      throw new NotImplementedException ();
    }

    public void FindAsync (FindCriteria criteria, object userState)
    {
      throw new NotImplementedException ();
    }

    public void Open ()
    {
      throw new NotImplementedException ();
    }

    public ResolveResponse Resolve (ResolveCriteria criteria)
    {
      throw new NotImplementedException ();
    }

    public void ResolveAsync (ResolveCriteria criteria)
    {
      throw new NotImplementedException ();
    }

    public void ResolveAsync (ResolveCriteria criteria, object userState)
    {
      throw new NotImplementedException ();
    }

    // explicit interface impl.

    void ICommunicationObject.Open ()
    {
      InnerChannel.Open ();
    }

    void ICommunicationObject.Open (TimeSpan timeout)
    {
      InnerChannel.Open (timeout);
    }

    void ICommunicationObject.Close ()
    {
      InnerChannel.Close ();
    }

    void ICommunicationObject.Close (TimeSpan timeout)
    {
      InnerChannel.Close (timeout);
    }

    IAsyncResult ICommunicationObject.BeginOpen (AsyncCallback callback, object state)
    {
      return InnerChannel.BeginOpen (callback, state);
    }

    IAsyncResult ICommunicationObject.BeginOpen (TimeSpan timeout, AsyncCallback callback, object state)
    {
      return InnerChannel.BeginOpen (timeout, callback, state);
    }

    IAsyncResult ICommunicationObject.BeginClose (AsyncCallback callback, object state)
    {
      return InnerChannel.BeginClose (callback, state);
    }

    IAsyncResult ICommunicationObject.BeginClose (TimeSpan timeout, AsyncCallback callback, object state)
    {
      return InnerChannel.BeginClose (timeout, callback, state);
    }

    void ICommunicationObject.EndOpen (IAsyncResult result)
    {
      InnerChannel.EndOpen (result);
    }

    void ICommunicationObject.EndClose (IAsyncResult result)
    {
      InnerChannel.EndClose (result);
    }

    void ICommunicationObject.Abort ()
    {
      InnerChannel.Abort ();
    }

    void IDisposable.Dispose ()
    {
      InnerChannel.Dispose ();
    }
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.