Example #1
0
 static Try <UserMapping> createUserMapping2(ADUser user) => () =>
 UserMapping.New(user.ToString() + " mapped");
Example #2
0
 static Task <Either <Exception, int> > addUser(UserMapping user) =>
 Right <Exception, int>(user.ToString().Length).AsTask();
Example #3
0
 static Try <int> addUser2(UserMapping user) => () =>
 user.ToString().Length;
Example #4
0
 static Either <Exception, UserMapping> createUserMapping(ADUser user) =>
 Right <Exception, UserMapping>(UserMapping.New(user.ToString() + " mapped"));