Questions tagged [contracts]
63 questions
1
vote
1 answer
Why error "The state is invalid"?
We have CRM 2011, on-premises. In a WCF Service (C#) I am programmatically creating Contracts and ContractDetails. After creating the Contract, I set its State = 'Invoiced' using this code:
try
{
SetStateRequest setStateRequest = new…

DeveloperM
- 1,129
- 7
- 17
- 30
1
vote
1 answer
Does Guava support Contract Classes, or otherwise allow interface documentation?
I was looking at Guava's Preconditions. It's great if you are using them in an implementation method, but is it possible to state interface contracts using them?
For example, in C# Contracts you can do this -
using…

George Simms
- 3,930
- 4
- 21
- 35
1
vote
2 answers
Action and ReplyAction in WCF Proxy
What is the use of Action and ReplyAction in OperationContract attribute ?

Amutha
- 15
- 1
- 3
1
vote
1 answer
What impersonator contracts does Racket have in addition to `new-∀/c` and `new-∃/c`?
Racket contracts are classified in three categories: Flat Contracts, Chaperone Contracts and Impersonator Contracts.
For Impersonator contracts, the only example I could find are the contracts for parametric polymorphism. Are there any other…

hugomg
- 68,213
- 24
- 160
- 246
1
vote
2 answers
List of operation contracts from wcf proxy
I probably need to search or investigate more. But thought of asking you guys first..
I have couple of WCF services hosted in Windows and in the client side I have the proxy with all these service contracts. My application is consuming them and…

user2066540
- 357
- 2
- 5
- 16
1
vote
0 answers
Microsoft Contracts: Assembly load resulted in metadata import warning
I'm trying to learn my way around the Microsoft Code Contracts libraries, and I have the following simple function:
internal static Engine CreateBuildEngine(Microsoft.Build.Framework.ILogger logger)
{
Contract.Requires( logger != null );
…

Orion Edwards
- 121,657
- 64
- 239
- 328
0
votes
1 answer
Using Cofoja with Wicket (or even with just Maven)
I am trying my darnedest to get Google Cofoja to run in my Apache Wicket application which uses Maven2 as seems to be standard.
The project was initially generated using Leg Up with the Archetype "Wicket 1.4.12, Guice 2.0, WarpPersist 2.0…

elsom25
- 71
- 5
0
votes
1 answer
WCF message contracts and namespaces
I have a WCF service which i've defined a message contract for. I've set IsWrapped to false. When I send xml to my service I have to specify the tempuri namespace in the root node of the soap body or the incoming message is null. I was wondering is…

Quadwwchs
- 1,425
- 3
- 15
- 20
0
votes
0 answers
sorting an Array List, Precondition solution
I have a small project which allows me to create an Array List (storing integer values called numbers). there is one method which takes all elements within the Array and organizes it according to the int value. e.g [3, 2, 9, 7] would be [2, 3, 7, 9]…

BradleyS
- 3
- 4
0
votes
1 answer
Laravel middleware throws error that depedency needs to implement contract, while it does
Type error: Argument 3 passed to App\Http\Middleware\UserAuthMiddleware::handle() must implement interface App\Contracts\UserAuth, none given, called in C:\wamp64\www\laravel\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php on line…
user8069675
0
votes
1 answer
Cannot invoke a contract in Ethereum Private chain using geth
I used a Greeter contract and compiled it,which generate web3 deploy code as follows:
var _greeting = "This is a contract" ;
var ballot_sol_greeterContract =…

black_butler
- 1
- 1
0
votes
2 answers
ABI string not working
I am writing a program which takes an ethereum contract ABI string in C# and uses it to call a function which allows me to interact with the smart contract using nethereum. When I use a smaller ABI string I am able to make it work but for some…

James
- 343
- 4
- 21
0
votes
1 answer
What's the reason the static analysis wasn't made available to VS 2010 Pro?
Is it so that the regular developers focus on writing their Contracts locally and then submit them to be analysed globally?
Or is there a way to get something comparable to this experience? Maybe as a separate download?
Also if a library have…

Joan Venge
- 315,713
- 212
- 479
- 689
0
votes
1 answer
jsf-2.2: f:view contracts attribute found, but not used at top level
Hello I am getting the following in the server console everytime I enter on a webpage:f:view contracts attribute found, but not used at top level.
I am using jsf template and I have a default.xhtml template file like this:

Diego Marinelli
- 636
- 5
- 13
0
votes
0 answers
WCF Service Library in Isolation of Contracts
I want to write a WCF service library in separate modules
one module(class library) for Contracts(IServices).
one module(class library) for Contract Implementations(Service).
one module(WCF service library by referring the above 2 modules)…

Srishanth Kumar
- 11
- 3