» Home » exposing » Page 1
Is there anything wrong with having a few private methods exposing IQueryable<T> and all public methods exposing IEnumerable<T>?
Category : Programming Languages

I'm wondering if there is a better way to approach this problem. The objective is to reuse code.

Let’s say that I have a Linq-To-SQL datacontext and I've written a "repository style" class that wraps up a lot of the methods I need and exposes IQueryables. (so far, no problem).

Now, I'm building a service layer to sit on top of this repository, many of the service metho

View Replies

Exposing or not exposing an API
Category : Programming Languages

I have the current dilemna in one of my portable C libraries I am working with. I have two high-level lib (say libA and libB). They provide very different API, and depend on user configuration options. I am against merging them together since it would mean merging any later libC, libD with libA. So I am trying to keep this clean separation. This also mean that application programmer can have a

View Replies

Exposing a C++ API to C#
Category : C & C++ & C#

So what I have is a C++ API contained within a *.dll and I want to use a C# application to call methods within the API.

So far I have created a C++ / CLR project that includes the native C++ API and managed to create a "bridge" class that looks a bit like the following:

// ManagedBridge.h
#include <CoreAPI.h>
using namespace __CORE_API;

View Replies

TAGS : Exposing

Exposing an API for DLLs from an app
Category : Programming Languages

I am developing a plugin system for an application. The idea is to load some functions from plugins (loaded as DLLs) and use those functions in our scripting language hosted in app. I have to expose an API for the DLLs for them to interact with the app. The API may change overtime and the older DLLs should not be invalidated. Please give me some leads to read up on or please suggest ideas. Than

View Replies

TAGS : Exposing DLLs from

Exposing a .Net Service
Category : Programming Languages

I have written a Windows Service in .Net and I want to expose the classes to be called by other .Net code. Specifically, I have an API that I want to expose via a DLL that will be placed in the GAC, and I want the DLL in the GAC to use the classes of the .Net Windows Service. I need this architecture as the code in the Windows Service needs to be run as a different user/account as the caller

View Replies

TAGS : Exposing Service

exposing net.tcp endpoint
Category : Programming Languages

I'm a bit confused of how to expose an endpoint in WCF

I've got a tcp endpoint and a mex tcp endpoint.

<service name="MessageReaderService.MessageReaderService">
<endpoint name="NetTcpReaderService"
binding="netTcpBinding" bindingConfiguration=""

View Replies

Exposing.NET assembly as COM 101
Category : Programming Languages

I have trouble to expose a .NET assembly in COM. It seems that I must be missing some basic step because I think I followed all tutorials and documentation I found as well as common sense, but still when I do (in a test VBScript):

Set o = CreateObject("MyLib.MyClass")

It keeps saying that the object cannot be created.

Here are the steps I have don

View Replies

Exposing an ISO C++ class to C#
Category : C & C++ & C#

I need to expose some C++ classes to C# (I am building on Linux, using mono, so COM is not an option)

The evidence I have gathered so far suggests that the best way to approach this is:

Write a wrapper C++.Net class around the ISO C++ class
Consume the C++.Net classes from C#

I have the following questions:

First, is this the "best" way of achieving th

View Replies

TAGS : Exposing class

Exposing DAO as web service
Category : Programming Languages

Can anyone point me in the direction of documentation for exposing a DAO as an external web service? Currently, in my application we follow a DAO -> Service -> UI layered architecture. Everything is internal to the app, our DAOs access the DB through Spring JDBC and the services are visible only to the web application.

We now have a need for downstream systems within my company to

View Replies

TAGS : Exposing service

Exposing a same class twice using WCF
Category : Programming Languages

I have a 2 WCF services that are exposing the same object. Lets say the first service (SerA) exposes a class (classA) and the second service (SerB) which adds the filled classA also exposes this class (as this class is included in the parameters) Now when I retrieve the classA from SerA, it is concatenated with a namespace SerA.classA and when I add this using the second service, it requires a

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .